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

Afficher le fichier Open project: DeathCradle/Terraria-s-Dedicated-Server-Mod

Méthodes publiques

Méthode 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 méthode

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

Create() public static méthode

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

DeleteAccount() public static méthode

public static DeleteAccount ( long accountId ) : bool
accountId long
Résultat bool

DeleteType() public static méthode

public static DeleteType ( long accountId, string type, string value ) : bool
accountId long
type string
value string
Résultat bool

FindAccountsByPrefix() public static méthode

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

FindByName() public static méthode

public static FindByName ( string name ) : APIAccount
name string
Résultat TDSM.Core.Data.Models.APIAccount

FindByNameAsync() public static méthode

public static FindByNameAsync ( string name ) : Task
name string
Résultat Task

GetRolesForAccount() public static méthode

public static GetRolesForAccount ( long accountId ) : Task
accountId long
Résultat Task