public class IZITravel
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IZITravel.Builder
A helper class for creating
IZITravel instances. |
static class |
IZITravel.Server
The server.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
API_VERSION
The default API version.
|
static IZITravel.Server |
SERVER_DEVELOPMENT |
static IZITravel.Server |
SERVER_PRODUCTION |
static IZITravel.Server |
SERVER_STAGING |
| Modifier and Type | Method and Description |
|---|---|
protected retrofit.RestAdapter |
buildRestAdapter() |
CityService |
cityService() |
CountryService |
countryService() |
protected retrofit.ErrorHandler |
getErrorHandler() |
protected com.google.gson.GsonBuilder |
getGsonBuilder() |
protected com.squareup.okhttp.OkHttpClient |
getOkHttpClient() |
protected retrofit.RequestInterceptor |
getRequestInterceptor() |
MediaHelper |
mediaHelper() |
MtgObjectService |
mtgObjectService() |
PublisherService |
publisherService() |
ReviewService |
reviewService() |
SearchService |
searchService() |
static IZITravel |
withApiKey(java.lang.String apiKey)
The default
IZITravel instance. |
public static final IZITravel.Server SERVER_PRODUCTION
public static final IZITravel.Server SERVER_STAGING
public static final IZITravel.Server SERVER_DEVELOPMENT
public static final java.lang.String API_VERSION
protected retrofit.RestAdapter buildRestAdapter()
protected com.squareup.okhttp.OkHttpClient getOkHttpClient()
protected com.google.gson.GsonBuilder getGsonBuilder()
protected retrofit.ErrorHandler getErrorHandler()
protected retrofit.RequestInterceptor getRequestInterceptor()
public MtgObjectService mtgObjectService()
public CityService cityService()
public CountryService countryService()
public PublisherService publisherService()
public ReviewService reviewService()
public SearchService searchService()
public MediaHelper mediaHelper()
public static IZITravel withApiKey(java.lang.String apiKey)
IZITravel instance.
This instance is automatically initialized with defaults that are suitable to most implementations.
API_VERSIONSERVER_PRODUCTIONIf these settings do not meet the requirements of your application you can construct your own
with full control over the configuration by using IZITravel.Builder to create a
IZITravel instance.