package com.tejia.lijin.app.contract;
|
|
|
import org.json.JSONObject;
|
|
/**
|
* 金币任务契约类
|
*/
|
public class GoldTaskContract {
|
/**
|
* activity 要实现的方法
|
*/
|
public interface GoldTaskView {
|
void onNotReceived(JSONObject obj);//未领取金币数据成功
|
|
void onNotReceivedFail(String errorInfo);//未领取金币数据失败
|
|
void onTaskList(JSONObject obj);//金币任务列表成功
|
|
void onTaskListFail(String errorInfo);//金币任务列表失败
|
|
void onReceiveGoldCoin(JSONObject obj);//金币领取成功
|
|
void onReceiveGoldCoinFail(String errorInfo);//金币领取失败
|
}
|
|
|
/**
|
* 搜索回调接口
|
*/
|
public interface GoldTaskCallBack {
|
void onSuccess(JSONObject obj);
|
|
void onFail(String errorInfo);
|
}
|
}
|