package com.yidianling.ydlcommon.custom.pay.redpacket.jump

import com.yidianling.ydlcommon.custom.mvp.MVPModel
import com.yidianling.ydlcommon.custom.mvp.MVPPresenter
import com.yidianling.ydlcommon.custom.mvp.MVPView
import com.yidianling.ydlcommon.custom.pay.redpacket.RedPacketBean

/**
 * @author yuanWai
 * @描述:跳转支付页面中间页约束类
 * @Copyright Copyright (c) 2018
 * @Company 壹点灵
 * @date 2018/10/24
 */
interface IJumpPayContract {
    interface View : MVPView {
        /**
         * 红包列表结果
         * @param data 数据集
         */
        fun couponResult(data : ArrayList<RedPacketBean>)
        fun onError(t: Throwable?)
        fun onFailed(msg: String?)
    }

    interface Presenter :
        MVPPresenter<View, Model> {
        /**
         * 请求红包列表接口
         */
        fun requestCoupon()
    }

    interface Model : MVPModel
}