SecondModel 实现类

package com.test.mvp.mvpdemo.mvp.v6.model;

import com.test.mvp.mvpdemo.mvp.v6.SecondContract;
import com.test.mvp.mvpdemo.mvp.v6.basemvp.BaseModel;
import okhttp3.Callback;
import okhttp3.OkHttpClient;
import okhttp3.Request;

public class SecondModel extends BaseModel implements SecondContract.ISecondModel {
@Override
public void requestBaidu(Callback callback) {
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder(http://www.amjmh.com/v/BIBRGZ_558768/)
.url("https://blog.csdn.net/smile_running")
.build();
client.newCall(request).enqueue(callback);
}
}
--------------------- 

posted on 2019-08-04 18:22  激流勇进1  阅读(66)  评论(0编辑  收藏  举报