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;
|
}
|
}
|