Class RankService
Inheritance
System.Object
RankService
Implements
Namespace: DirectScale.Disco.Extension.Services
Assembly: DirectScale.Disco.Extension.Abstractions.dll
Syntax
public class RankService : Object, IRankService
Constructors
RankService(IApiService)
Declaration
public RankService(IApiService apiService)
Parameters
Type | Name | Description |
---|---|---|
IApiService | apiService |
Methods
GetRankName(Int32)
Finds a specific rank
by id.
Declaration
public Task<string> GetRankName(int rank)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rank | The rank id |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> | The name of the rank Name
|
GetRanks()
Reads ranks from DB.
Declaration
public Task<Rank[]> GetRanks()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Rank[]> | All ranks as an array. Null if none are found. |