C# Class BusinessLogicLayer.Logic

Inheritance: IBusinessLogicLayer
Afficher le fichier Open project: sstuteam/Gimble

Méthodes publiques

Méthode Description
CreateAccount ( Account account ) : bool
CreateAdmin ( Account account ) : void
CreateComment ( Comment comment ) : bool
CreatePost ( Post post ) : bool
DeleteAccount ( string name ) : bool
DeleteComment ( System.Guid comid ) : void
Get30DaysPopular ( ) : IEnumerable
Get7DaysPopular ( ) : IEnumerable
GetAccountById ( System.Guid accountId ) : Account
GetAccountByLogin ( string name, bool checking ) : Account
GetAllAccounts ( ) : IEnumerable
GetAllRoles ( ) : string[]
GetAvatar ( string name ) : Photo
GetBookmarks ( string modelName ) : List
GetByTag ( string currentTag ) : IEnumerable
GetComments ( System.Guid postId ) : List
GetIdByName ( string login ) : System.Guid
GetLatestPosts ( ) : IEnumerable
GetLikes ( System.Guid postId, System.Guid accountId ) : int>.Dictionary
GetPost ( System.Guid postid ) : Post
GetPostsSource ( System.Guid postId ) : Photo
GetRolesOfAccounts ( ) : string[]>.Dictionary
GetSHA256 ( string password ) : string
GetUserById ( System.Guid id ) : Account
GetUsersPosts ( string currentUser ) : IEnumerable
RegisterRoles ( ) : int
SetLike ( System.Guid postId, System.Guid accountId ) : bool
UpdateAvatar ( System.Guid accountId, byte Avatar, string mimetype ) : bool
UpdateCityAndCountry ( System.Guid id, string newCity, string newCountry ) : bool
UpdateMail ( System.Guid id, string newMail ) : bool
UpdateName ( System.Guid id, string newName ) : bool
UpdatePassword ( System.Guid id, string password ) : bool
UpdateRole ( System.Guid accountId, int roleCode ) : bool

Method Details

CreateAccount() public méthode

public CreateAccount ( Account account ) : bool
account Entities.Account
Résultat bool

CreateAdmin() public méthode

public CreateAdmin ( Account account ) : void
account Entities.Account
Résultat void

CreateComment() public méthode

public CreateComment ( Comment comment ) : bool
comment Comment
Résultat bool

CreatePost() public méthode

public CreatePost ( Post post ) : bool
post Entities.Post
Résultat bool

DeleteAccount() public méthode

public DeleteAccount ( string name ) : bool
name string
Résultat bool

DeleteComment() public méthode

public DeleteComment ( System.Guid comid ) : void
comid System.Guid
Résultat void

Get30DaysPopular() public méthode

public Get30DaysPopular ( ) : IEnumerable
Résultat IEnumerable

Get7DaysPopular() public méthode

public Get7DaysPopular ( ) : IEnumerable
Résultat IEnumerable

GetAccountById() public méthode

public GetAccountById ( System.Guid accountId ) : Account
accountId System.Guid
Résultat Entities.Account

GetAccountByLogin() public méthode

public GetAccountByLogin ( string name, bool checking ) : Account
name string
checking bool
Résultat Entities.Account

GetAllAccounts() public méthode

public GetAllAccounts ( ) : IEnumerable
Résultat IEnumerable

GetAllRoles() public méthode

public GetAllRoles ( ) : string[]
Résultat string[]

GetAvatar() public méthode

public GetAvatar ( string name ) : Photo
name string
Résultat Photo

GetBookmarks() public méthode

public GetBookmarks ( string modelName ) : List
modelName string
Résultat List

GetByTag() public méthode

public GetByTag ( string currentTag ) : IEnumerable
currentTag string
Résultat IEnumerable

GetComments() public méthode

public GetComments ( System.Guid postId ) : List
postId System.Guid
Résultat List

GetIdByName() public méthode

public GetIdByName ( string login ) : System.Guid
login string
Résultat System.Guid

GetLatestPosts() public méthode

public GetLatestPosts ( ) : IEnumerable
Résultat IEnumerable

GetLikes() public méthode

public GetLikes ( System.Guid postId, System.Guid accountId ) : int>.Dictionary
postId System.Guid
accountId System.Guid
Résultat int>.Dictionary

GetPost() public méthode

public GetPost ( System.Guid postid ) : Post
postid System.Guid
Résultat Entities.Post

GetPostsSource() public méthode

public GetPostsSource ( System.Guid postId ) : Photo
postId System.Guid
Résultat Photo

GetRolesOfAccounts() public méthode

public GetRolesOfAccounts ( ) : string[]>.Dictionary
Résultat string[]>.Dictionary

GetSHA256() public méthode

public GetSHA256 ( string password ) : string
password string
Résultat string

GetUserById() public méthode

public GetUserById ( System.Guid id ) : Account
id System.Guid
Résultat Entities.Account

GetUsersPosts() public méthode

public GetUsersPosts ( string currentUser ) : IEnumerable
currentUser string
Résultat IEnumerable

RegisterRoles() public méthode

public RegisterRoles ( ) : int
Résultat int

SetLike() public méthode

public SetLike ( System.Guid postId, System.Guid accountId ) : bool
postId System.Guid
accountId System.Guid
Résultat bool

UpdateAvatar() public méthode

public UpdateAvatar ( System.Guid accountId, byte Avatar, string mimetype ) : bool
accountId System.Guid
Avatar byte
mimetype string
Résultat bool

UpdateCityAndCountry() public méthode

public UpdateCityAndCountry ( System.Guid id, string newCity, string newCountry ) : bool
id System.Guid
newCity string
newCountry string
Résultat bool

UpdateMail() public méthode

public UpdateMail ( System.Guid id, string newMail ) : bool
id System.Guid
newMail string
Résultat bool

UpdateName() public méthode

public UpdateName ( System.Guid id, string newName ) : bool
id System.Guid
newName string
Résultat bool

UpdatePassword() public méthode

public UpdatePassword ( System.Guid id, string password ) : bool
id System.Guid
password string
Résultat bool

UpdateRole() public méthode

public UpdateRole ( System.Guid accountId, int roleCode ) : bool
accountId System.Guid
roleCode int
Résultat bool