package com.tejia.lijin.app.contract;
|
|
import com.tejia.lijin.app.entity.HotSearch;
|
|
import org.json.JSONObject;
|
|
import java.io.IOException;
|
import java.util.List;
|
|
/**
|
* 搜索过渡页契约类
|
*/
|
public class SearchFgContract {
|
/**
|
* Fragment 要实现的方法
|
*/
|
public interface SearchView {
|
void onSearchSuccess(List<HotSearch> listy, JSONObject object) throws IOException;//搜索成功
|
|
void onSearchFail(String errorInfo);//搜索失败
|
}
|
|
// /**
|
// * presenter要实现的搜索请求
|
// */
|
// public interface SearchModel {
|
// void Search(String id, SearchCallBack callBack);
|
// }
|
|
/**
|
* 搜索回调接口
|
*/
|
public interface SearchCallBack {
|
void onSuccess(List<HotSearch> list, JSONObject object) throws IOException;
|
|
void onFail(String errorInfo);
|
}
|
|
}
|