public class ConnectionManager
extends java.lang.Object
| Constructor and Description |
|---|
ConnectionManager() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isNetwork(android.content.Context context)
Check network connectivity
|
static <T> void |
retroRequest(android.content.Context _context,
boolean _isDialog,
android.view.View _view,
<any> networkCall,
RetroResponse retroResponse)
Generic Retrofit request
|
static void |
volleyRequest(android.content.Context _context,
boolean _isDialog,
android.view.View _view,
java.lang.String _url,
int _requestMethod,
java.util.HashMap<java.lang.String,java.lang.String> _params,
java.util.HashMap<java.lang.String,java.lang.String> _headers,
VolleyResponse _volleyResponse)
Volley Post/put/delete request with header
|
static void |
volleyRequest(android.content.Context _context,
boolean _isDialog,
android.view.View _view,
java.lang.String _url,
int _requestMethod,
java.util.HashMap<java.lang.String,java.lang.String> _params,
VolleyResponse _volleyResponse)
Volley Post/put/delete request without header
|
static void |
volleyRequest(android.content.Context _context,
boolean _isDialog,
android.view.View _view,
java.lang.String _url,
VolleyResponse _volleyResponse)
Volley Get request without header and params
|
static void |
volleyRequestJSON(android.content.Context _context,
boolean _isDialog,
android.view.View _view,
java.lang.String _url,
org.json.JSONObject _jsonParamObject,
int _requestMethod,
java.util.HashMap<java.lang.String,java.lang.String> _headers,
VolleyResponse _volleyResponse)
Volley JsonObjectRequest
Method POST / PUT / DELETE with header
|
static void |
volleyRequestJSON(android.content.Context _context,
boolean _isDialog,
android.view.View _view,
java.lang.String _url,
VolleyResponse _volleyResponse)
VOlley JsonObjectRequest
Method GET
|
static void |
volleyRequestJSON(android.content.Context _context,
android.view.View _view,
boolean _isDialog,
java.lang.String _url,
org.json.JSONObject _jsonParamObject,
int _requestMethod,
VolleyResponse _volleyResponse)
Volley JSON object request
Method Post / PUT / DELETE without header
|
public static <T> void retroRequest(android.content.Context _context,
boolean _isDialog,
android.view.View _view,
<any> networkCall,
RetroResponse retroResponse)
T - _context - _isDialog - _view - networkCall - retroResponse - public static void volleyRequest(android.content.Context _context,
boolean _isDialog,
android.view.View _view,
java.lang.String _url,
int _requestMethod,
java.util.HashMap<java.lang.String,java.lang.String> _params,
VolleyResponse _volleyResponse)
_context - _isDialog - _view - _url - _requestMethod - _params - _volleyResponse - public static void volleyRequest(android.content.Context _context,
boolean _isDialog,
android.view.View _view,
java.lang.String _url,
int _requestMethod,
java.util.HashMap<java.lang.String,java.lang.String> _params,
java.util.HashMap<java.lang.String,java.lang.String> _headers,
VolleyResponse _volleyResponse)
_context - _isDialog - _view - _url - _requestMethod - _params - _headers - _volleyResponse - public static void volleyRequest(android.content.Context _context,
boolean _isDialog,
android.view.View _view,
java.lang.String _url,
VolleyResponse _volleyResponse)
_context - _isDialog - _view - _url - _volleyResponse - public static void volleyRequestJSON(android.content.Context _context,
boolean _isDialog,
android.view.View _view,
java.lang.String _url,
org.json.JSONObject _jsonParamObject,
int _requestMethod,
java.util.HashMap<java.lang.String,java.lang.String> _headers,
VolleyResponse _volleyResponse)
_context - _isDialog - _view - _url - _jsonParamObject - _requestMethod - _headers - _volleyResponse - public static void volleyRequestJSON(android.content.Context _context,
android.view.View _view,
boolean _isDialog,
java.lang.String _url,
org.json.JSONObject _jsonParamObject,
int _requestMethod,
VolleyResponse _volleyResponse)
_context - _view - _isDialog - _url - _jsonParamObject - _requestMethod - _volleyResponse - public static void volleyRequestJSON(android.content.Context _context,
boolean _isDialog,
android.view.View _view,
java.lang.String _url,
VolleyResponse _volleyResponse)
_context - _isDialog - _view - _url - _volleyResponse - public static boolean isNetwork(android.content.Context context)
context -