-
- All Implemented Interfaces:
-
com.brightpattern.bpcontactcenter.interfaces.NetworkServiceable
public final class NetworkService implements NetworkServiceable
-
-
Constructor Summary
Constructors Constructor Description NetworkService(RequestQueue queue)
-
Method Summary
Modifier and Type Method Description Unit
executeJsonRequest(Integer method, String url, HttpHeaderFields headerFields, JSONObject jsonRequest, Response.Listener<JSONObject> listener, Response.ErrorListener errorListener)
Unit
executeSimpleRequest(Integer method, String url, HttpHeaderFields headerFields, Response.Listener<JSONObject> listener, Response.ErrorListener errorListener)
Unit
executePollRequest(Integer method, String url, HttpHeaderFields headerFields, JSONObject jsonRequest, Integer timeoutMs, Response.Listener<JSONObject> listener, Response.ErrorListener errorListener)
String
getBaseURL()
RequestQueue
getQueue()
Unit
setBaseURL(String baseURL)
-
-
Method Detail
-
executeJsonRequest
Unit executeJsonRequest(Integer method, String url, HttpHeaderFields headerFields, JSONObject jsonRequest, Response.Listener<JSONObject> listener, Response.ErrorListener errorListener)
-
executeSimpleRequest
Unit executeSimpleRequest(Integer method, String url, HttpHeaderFields headerFields, Response.Listener<JSONObject> listener, Response.ErrorListener errorListener)
-
executePollRequest
Unit executePollRequest(Integer method, String url, HttpHeaderFields headerFields, JSONObject jsonRequest, Integer timeoutMs, Response.Listener<JSONObject> listener, Response.ErrorListener errorListener)
-
getBaseURL
String getBaseURL()
-
getQueue
RequestQueue getQueue()
-
setBaseURL
Unit setBaseURL(String baseURL)
-
-
-
-