Class TimeZoneCloudClient
A class provides the methods to access the TimeZone APIs.
public class TimeZoneCloudClient : CloudClient, IDisposable
- Inheritance
-
TimeZoneCloudClient
- Implements
- Inherited Members
Remarks
A class provides the methods to access the TimeZone APIs.
Constructors
TimeZoneCloudClient()
Initilizes an instance. You need apply client Id and secret by properties.
public TimeZoneCloudClient()
TimeZoneCloudClient(string, string)
Initializes an instance with ClientID and ClientSecret. It will send a request to GIS Server to gain the token which will be added to the Header for all the requests.
public TimeZoneCloudClient(string clientId, string clientSecret)
Parameters
Exceptions
- ArgumentNullException
Thrown when the
clientIdorclientSecretis null.
Methods
GetAllTimeZoneNames()
Get the names of all the time zones.
public Collection<string> GetAllTimeZoneNames()
Returns
GetAllTimeZoneNamesAsync()
Get the names of all the time zones.
public Task<Collection<string>> GetAllTimeZoneNamesAsync()
Returns
GetAllTimeZones()
Get all the time zones.
public Collection<CloudTimeZoneResult> GetAllTimeZones()
Returns
GetAllTimeZonesAsync()
Get all the time zones.
public Task<Collection<CloudTimeZoneResult>> GetAllTimeZonesAsync()
Returns
GetTimeZoneByCoordinate(double, double)
Get the time zone of a coodinate.
public CloudTimeZoneResult GetTimeZoneByCoordinate(double latitude, double longitude)
Parameters
Returns
- CloudTimeZoneResult
The time zone result.CloudTimeZoneResult
GetTimeZoneByCoordinate(double, double, int)
Get the time zone of a coodinate.
public CloudTimeZoneResult GetTimeZoneByCoordinate(double x, double y, int projectionInSrid)
Parameters
xdoubleThe X of the coordinate.
ydoubleThe Y of the coordinate.
projectionInSridintThe Srid of the coordinate.
Returns
- CloudTimeZoneResult
The time zone result.CloudTimeZoneResult
GetTimeZoneByCoordinate(double, double, string)
Get the time zone of a coodinate.
public CloudTimeZoneResult GetTimeZoneByCoordinate(double x, double y, string projectionInProj4String)
Parameters
xdoubleThe X of the coordinate.
ydoubleThe Y of the coordinate.
projectionInProj4StringstringThe Proj4String of the coordinate.
Returns
- CloudTimeZoneResult
The time zone result.CloudTimeZoneResult
GetTimeZoneByCoordinateAsync(double, double)
Get the time zone of a coodinate.
public Task<CloudTimeZoneResult> GetTimeZoneByCoordinateAsync(double latitude, double longitude)
Parameters
Returns
- Task<CloudTimeZoneResult>
The time zone result.CloudTimeZoneResult
GetTimeZoneByCoordinateAsync(double, double, int)
Get the time zone of a coodinate.
public Task<CloudTimeZoneResult> GetTimeZoneByCoordinateAsync(double x, double y, int projectionInSrid)
Parameters
xdoubleThe X of the coordinate.
ydoubleThe Y of the coordinate.
projectionInSridintThe Srid of the coordinate.
Returns
- Task<CloudTimeZoneResult>
The time zone result.CloudTimeZoneResult
GetTimeZoneByCoordinateAsync(double, double, string)
Get the time zone of a coodinate.
public Task<CloudTimeZoneResult> GetTimeZoneByCoordinateAsync(double x, double y, string projectionInProj4String)
Parameters
xdoubleThe X of the coordinate.
ydoubleThe Y of the coordinate.
projectionInProj4StringstringThe Proj4String of the coordinate.
Returns
- Task<CloudTimeZoneResult>
The time zone result.CloudTimeZoneResult