Interface IRankService
Gets rank information
Namespace: DirectScale.Disco.Extension.Services
Assembly: DirectScale.Disco.Extension.Abstractions.dll
Syntax
public interface IRankService
Methods
GetRankName(Int32)
Finds a specific rank by id.
Declaration
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
Task<Rank[]> GetRanks()
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Rank[]> | All ranks as an array. Null if none are found. |