C# Класс SystranClientGeographicApiLib.Api.DestinationsApi

Represents a collection of functions to interact with the API endpoints
Наследование: IDestinationsApi
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DestinationsApi ( ApiClient apiClient = null ) : RestSharp

Initializes a new instance of the DestinationsApi class.

DestinationsApi ( String basePath ) : RestSharp

Initializes a new instance of the DestinationsApi class.

GeographicDestinationsGetGet ( string Id, string AcceptLanguage, string Callback ) : DestinationDetailsResponse

Get specific destination Get a specific `Destination`.

GeographicDestinationsGetGetAsync ( string Id, string AcceptLanguage, string Callback ) : Task

Get specific destination Get a specific `Destination`.

GeographicDestinationsListGet ( double Latitude, double Longitude, double Radius, string Address, string Country, string State, string County, string City, string PostalCode, int Limit, int Offset, string AcceptLanguage, string Callback ) : DestinationResponse

List destinations Get a list of `Destinations`.\n\nThe main criteria can be:\n* a position and a radius\n* a textual search\n\nAdditional critera can be added.\n

GeographicDestinationsListGetAsync ( double Latitude, double Longitude, double Radius, string Address, string Country, string State, string County, string City, string PostalCode, int Limit, int Offset, string AcceptLanguage, string Callback ) : Task

List destinations Get a list of `Destinations`.\n\nThe main criteria can be:\n* a position and a radius\n* a textual search\n\nAdditional critera can be added.\n

GetBasePath ( String basePath ) : String

Gets the base path of the API client.

SetBasePath ( String basePath ) : void

Sets the base path of the API client.

Описание методов

DestinationsApi() публичный Метод

Initializes a new instance of the DestinationsApi class.
public DestinationsApi ( ApiClient apiClient = null ) : RestSharp
apiClient Systran.GeographicClientLib.Client.ApiClient
Результат RestSharp

DestinationsApi() публичный Метод

Initializes a new instance of the DestinationsApi class.
public DestinationsApi ( String basePath ) : RestSharp
basePath String
Результат RestSharp

GeographicDestinationsGetGet() публичный Метод

Get specific destination Get a specific `Destination`.
public GeographicDestinationsGetGet ( string Id, string AcceptLanguage, string Callback ) : DestinationDetailsResponse
Id string Destination identifier
AcceptLanguage string Preferred languages for response localization.\n\nSee [Accept-Language header specification for HTTP\n1.1](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4)\n
Callback string Javascript callback function name for JSONP Support\n
Результат Systran.GeographicClientLib.Model.DestinationDetailsResponse

GeographicDestinationsGetGetAsync() публичный Метод

Get specific destination Get a specific `Destination`.
public GeographicDestinationsGetGetAsync ( string Id, string AcceptLanguage, string Callback ) : Task
Id string Destination identifier
AcceptLanguage string Preferred languages for response localization.\n\nSee [Accept-Language header specification for HTTP\n1.1](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4)\n
Callback string Javascript callback function name for JSONP Support\n
Результат Task

GeographicDestinationsListGet() публичный Метод

List destinations Get a list of `Destinations`.\n\nThe main criteria can be:\n* a position and a radius\n* a textual search\n\nAdditional critera can be added.\n
public GeographicDestinationsListGet ( double Latitude, double Longitude, double Radius, string Address, string Country, string State, string County, string City, string PostalCode, int Limit, int Offset, string AcceptLanguage, string Callback ) : DestinationResponse
Latitude double Latitude location. Musts be used together with `longitude` and `radius` parameters.
Longitude double Longitude location. Musts be used together with `latitude` and `radius` parameters.
Radius double Radius in meters. Musts be used together with `latitude` and `longitude` parameters.
Address string Address
Country string Country
State string State
County string County
City string City
PostalCode string Postal Code
Limit int Pagination limit
Offset int Pagination offset
AcceptLanguage string Preferred languages for response localization.\n\nSee [Accept-Language header specification for HTTP\n1.1](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4)\n
Callback string Javascript callback function name for JSONP Support\n
Результат Systran.GeographicClientLib.Model.DestinationResponse

GeographicDestinationsListGetAsync() публичный Метод

List destinations Get a list of `Destinations`.\n\nThe main criteria can be:\n* a position and a radius\n* a textual search\n\nAdditional critera can be added.\n
public GeographicDestinationsListGetAsync ( double Latitude, double Longitude, double Radius, string Address, string Country, string State, string County, string City, string PostalCode, int Limit, int Offset, string AcceptLanguage, string Callback ) : Task
Latitude double Latitude location. Musts be used together with `longitude` and `radius` parameters.
Longitude double Longitude location. Musts be used together with `latitude` and `radius` parameters.
Radius double Radius in meters. Musts be used together with `latitude` and `longitude` parameters.
Address string Address
Country string Country
State string State
County string County
City string City
PostalCode string Postal Code
Limit int Pagination limit
Offset int Pagination offset
AcceptLanguage string Preferred languages for response localization.\n\nSee [Accept-Language header specification for HTTP\n1.1](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4)\n
Callback string Javascript callback function name for JSONP Support\n
Результат Task

GetBasePath() публичный Метод

Gets the base path of the API client.
public GetBasePath ( String basePath ) : String
basePath String
Результат String

SetBasePath() публичный Метод

Sets the base path of the API client.
public SetBasePath ( String basePath ) : void
basePath String
Результат void