Class RegionService
Inheritance
System.Object
RegionService
Implements
Namespace: DirectScale.Disco.Extension.Services
Assembly: DirectScale.Disco.Extension.Abstractions.dll
Syntax
public class RegionService : Object, IRegionService
Constructors
RegionService(IApiService)
Declaration
public RegionService(IApiService apiService)
Parameters
| Type | Name | Description |
|---|---|---|
| IApiService | apiService |
Methods
GetRegionId(String, String)
Gets the region id over this countryCode and stateCode.
Declaration
public Task<int> GetRegionId(string countryCode, string stateCode)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | countryCode | Country. |
| System.String | stateCode | State. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.Int32> | Returns the region id of the region that include this |
See Also
GetRegionIdByAddress(Address)
Gets the region id over this address's country and state.
Declaration
public Task<int> GetRegionIdByAddress(Address address)
Parameters
| Type | Name | Description |
|---|---|---|
| Address | address | Address. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.Int32> | Returns the region id of the region that include this |
See Also
GetRegionName(Int32)
Gets the description of the regionId.
Declaration
public Task<string> GetRegionName(int regionId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | regionId | Region id. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.String> | Name of region. |