repositories {
jcenter()
maven { url 'https://jitpack.io' }
}
dependencies {
//... other dependencies
compile 'com.github.bhavin250495:Cazzy-Simple-Networking:1.0'
}
Http_request.sendGetRequest("url", new ResponseHandler() {
@Override
public void getResponse(ServerResponseWrapper serverResponseWrapper) {
if (serverResponseWrapper.isSuccess){
Log.d("TAG",serverResponseWrapper.response);
}else{
Log.d("TAG",serverResponseWrapper.response);
}
}
});
Http_request.sendPostRequest("url", JsonParam.toString(), new ResponseHandler() {
@Override
public void getResponse(ServerResponseWrapper serverResponseWrapper) {
if (serverResponseWrapper.isSuccess){
Log.d("TAG",serverResponseWrapper.response);
}else{
Log.d("TAG",serverResponseWrapper.response);
}
}
});