admin
2021-05-11 e5ca87e89fef96c827ec37d1d91082f626cbb17d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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);
    }
 
}