package com.tejia.lijin.app.ui.gold.contract;
|
|
import org.json.JSONObject;
|
|
/**
|
* 兑换邀请码Contract
|
*/
|
public class InviteCodeExchangeContract {
|
|
/*
|
数据传回View层
|
*/
|
public interface inviteCodeExchange {
|
void onGetInviteCodeListSuccess(JSONObject jsonObject);//邀请码列表获取成功
|
|
void onGetInviteCodeListFailure(String errorStr);//邀请码列表获取失败
|
|
void onGoExchangeVerifySuccess(JSONObject jsonObject);
|
|
void onGoExchangeVerifyFailure(String errorStr);
|
|
void onGoExchangeSuccess(JSONObject jsonObject,String id);
|
|
void onGoExchangeFailure(String errorStr);
|
}
|
|
/*
|
网络回调
|
*/
|
public interface inviteCodeExchangeCallback {
|
void onSuccess(JSONObject jsonObject);
|
|
void onFailure(String errorStr);
|
}
|
}
|