天津出行司机端 v6.9.3版本的 MD5 值为:b7a18e0f0e865860fd80aa9ed7cf4ae1
以下内容为反编译后的 TemplateMockAdapter.java 源代码,内容仅作参考
package com.didichuxing.doraemonkit.kit.network.ui;
import com.didichuxing.doraemonkit.kit.network.bean.MockTemplateTitleBean;
import com.didichuxing.doraemonkit.kit.network.room_db.MockTemplateApiBean;
import com.didichuxing.doraemonkit.widget.brvah.BaseNodeAdapter;
import com.didichuxing.doraemonkit.widget.brvah.entity.node.BaseNode;
import com.didichuxing.doraemonkit.widget.brvah.module.LoadMoreModule;
import java.util.List;
public class TemplateMockAdapter extends BaseNodeAdapter implements LoadMoreModule {
public static final String TAG = "InterceptMockAdapter";
public static String TEMPLATER_UPLOAD_URL = "https://mock.dokit.cn/api/app/interface";
public static final int TYPE_CONTENT = 200;
public static final int TYPE_TITLE = 100;
public TemplateMockAdapter(List<BaseNode> nodeList) {
super(nodeList);
addFullSpanNodeProvider(new TemplateTitleNodeProvider());
addNodeProvider(new TemplateDetailNodeProvider());
}
@Override
protected int getItemType(List<? extends BaseNode> data, int position) {
BaseNode node = data.get(position);
if (node instanceof MockTemplateTitleBean) {
return 100;
}
if (node instanceof MockTemplateApiBean) {
return 200;
}
return -1;
}
}