/**
 *Created by cuiliqiang on 2018/3/12
 * 前置开奖提交数据
 */
import { Data } from "../../Data";

export class BeforSubmitData extends Data {
    /**
     * 状态 0处理成功
     */
    public result: number;

    /**
     * 
     */
    public type: string;

    /**
     * 用户虚拟积分可达到的阈值 未中奖返回-1
     */
    public facePrice: number;

    /**
     * 订单ID
     */
    public orderId: number;

    /**
     * 标题
     */
    public title: string;

    public update(data: any): void {
        if (!data) {
            return;
        }
        this.result = data.result;
        this.type = data.type;
        this.facePrice = data.facePrice;
        this.orderId = data.orderId;
        this.title = data.title;
    }
}
