C# Class TDSM.Core.Data.Management.APIAccountManager

显示文件 Open project: DeathCradle/Terraria-s-Dedicated-Server-Mod

Public Methods

Method Description
AddType ( long accountId, string type, string value ) : APIAccountRole
Create ( string name, string password ) : APIAccount
DeleteAccount ( long accountId ) : bool
DeleteType ( long accountId, string type, string value ) : bool
FindAccountsByPrefix ( string search ) : string[]

Finds a list of accounts matching a prefix

FindByName ( string name ) : APIAccount
FindByNameAsync ( string name ) : Task
GetRolesForAccount ( long accountId ) : Task

Method Details

AddType() public static method

public static AddType ( long accountId, string type, string value ) : APIAccountRole
accountId long
type string
value string
return TDSM.Core.Data.Models.APIAccountRole

Create() public static method

public static Create ( string name, string password ) : APIAccount
name string
password string
return TDSM.Core.Data.Models.APIAccount

DeleteAccount() public static method

public static DeleteAccount ( long accountId ) : bool
accountId long
return bool

DeleteType() public static method

public static DeleteType ( long accountId, string type, string value ) : bool
accountId long
type string
value string
return bool

FindAccountsByPrefix() public static method

Finds a list of accounts matching a prefix
public static FindAccountsByPrefix ( string search ) : string[]
search string Search prefix.
return string[]

FindByName() public static method

public static FindByName ( string name ) : APIAccount
name string
return TDSM.Core.Data.Models.APIAccount

FindByNameAsync() public static method

public static FindByNameAsync ( string name ) : Task
name string
return Task

GetRolesForAccount() public static method

public static GetRolesForAccount ( long accountId ) : Task
accountId long
return Task