C# Class afung.MangaWeb3.Server.User

Datei anzeigen Open project: a-fung/MangaWeb3 Class Usage Examples

Public Methods

Method Description
CreateNewUser ( string username, string password, bool admin ) : User
DeleteUsers ( int ids, User currentUser ) : void
GetAllUsers ( ) : afung.MangaWeb3.Server.User[]
GetById ( int id ) : User
GetCurrentUser ( AjaxBase ajax ) : User
GetUser ( string username ) : User
GetUser ( string username, string password ) : User
IsAdminLoggedIn ( AjaxBase ajax ) : bool
MatchPassword ( string password ) : bool
Save ( ) : void
SetAdmin ( int ids, bool admin, User currentUser ) : void
SetPassword ( string password ) : void
ToJson ( ) : UserJson
ToJsonArray ( User users ) : afung.MangaWeb3.Common.UserJson[]

Private Methods

Method Description
FromData ( object>.Dictionary data ) : User
User ( ) : System

Method Details

CreateNewUser() public static method

public static CreateNewUser ( string username, string password, bool admin ) : User
username string
password string
admin bool
return User

DeleteUsers() public static method

public static DeleteUsers ( int ids, User currentUser ) : void
ids int
currentUser User
return void

GetAllUsers() public static method

public static GetAllUsers ( ) : afung.MangaWeb3.Server.User[]
return afung.MangaWeb3.Server.User[]

GetById() public static method

public static GetById ( int id ) : User
id int
return User

GetCurrentUser() public static method

public static GetCurrentUser ( AjaxBase ajax ) : User
ajax AjaxBase
return User

GetUser() public static method

public static GetUser ( string username ) : User
username string
return User

GetUser() public static method

public static GetUser ( string username, string password ) : User
username string
password string
return User

IsAdminLoggedIn() public static method

public static IsAdminLoggedIn ( AjaxBase ajax ) : bool
ajax AjaxBase
return bool

MatchPassword() public method

public MatchPassword ( string password ) : bool
password string
return bool

Save() public method

public Save ( ) : void
return void

SetAdmin() public static method

public static SetAdmin ( int ids, bool admin, User currentUser ) : void
ids int
admin bool
currentUser User
return void

SetPassword() public method

public SetPassword ( string password ) : void
password string
return void

ToJson() public method

public ToJson ( ) : UserJson
return afung.MangaWeb3.Common.UserJson

ToJsonArray() public static method

public static ToJsonArray ( User users ) : afung.MangaWeb3.Common.UserJson[]
users User
return afung.MangaWeb3.Common.UserJson[]