//get回调
package home.shou.model;
import android.util.Log;
import java.io.IOException;
import add.Okhttp;
import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.Response;
public class ShowModel implements ShowModelintent {
getdatamodel getdatamodel;
public ShowModel(getdatamodel getdatamodel){
this.getdatamodel=getdatamodel;
}
@Override
public void getmodel() {
String path=“http://172.17.8.100/small/commodity/v1/commodityList”;
Okhttp.okhttpget(path, new Callback() {
@Override
public void onFailure(Call call, IOException e) {
}
@Override
public void onResponse(Call call, final Response response) throws IOException {
// Log.i("AA","sss"+response.body().str