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
40
41
package com.tejia.lijin.app.contract;
 
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
 
/**
 * 消息页面 契约类
 */
public class MessgeContract {
    /**
     * activity 要实现的方法
     */
    public interface MessgeView {
        void onUnReadMsgCount(JSONObject jsonObject);//未读消息请求成功
 
//        void onUnReadMsgCountFail(String errorInfo);//未读消息请求失败
 
        void onAllMsgReadSuccess(JSONObject jsonObject);//清空未读消息请求成功
 
//        void onAllMsgReadFail(String errorInfo);//清空未读消息请求失败
 
        void onMSGConfigSuccess(JSONObject jsonObject);//消息中心红包请求成功
 
//        void onMSGConfigFail(String errorInfo);//消息中心红包请求失败
    }
 
    /**
     * 分享库回调接口
     */
    public interface onMessgeCallBack {
        void onSuccess(JSONObject jsonObject);
    }
 
    /**
     * 缓存返回接口  (list 消息列表)
     */
    public interface onCommonListCallback {
        void onSuccess(JSONArray mJsonArray) throws JSONException;
    }
}