-
public class ApiClient
-
-
Field Summary
Fields Modifier and Type Field Description private final static Gsongson
-
Method Summary
Modifier and Type Method Description static GsongetGson()static RetrofitgetOmnibrowseClient(GliaEnvironment env)It returns Retrofit instance that connects to OmniBrowse static RetrofitgetGliaClient(GliaEnvironment env)It returns Retrofit instance that connects to Glia static RetrofitgetLoggerClient(GliaEnvironment env)It returns Retrofit instance that connects to Logs static <T> TfromJson(String json, Class<T> classOfT)static <T> TfromJson(JSONObject json, Class<T> classOfT)static StringtoJson(Object src)-
-
Method Detail
-
getGson
static Gson getGson()
-
getOmnibrowseClient
static Retrofit getOmnibrowseClient(GliaEnvironment env)
It returns Retrofit instance that connects to OmniBrowse
-
getGliaClient
static Retrofit getGliaClient(GliaEnvironment env)
It returns Retrofit instance that connects to Glia
-
getLoggerClient
static Retrofit getLoggerClient(GliaEnvironment env)
It returns Retrofit instance that connects to Logs
-
fromJson
static <T> T fromJson(JSONObject json, Class<T> classOfT)
-
-
-
-