"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
    p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) { 
 function r() { 
 this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
 *Created by cuiliqiang on 2018/3/12
 * 活动工具抽奖数据
 */
var Data_1 = require("../../Data");
var DoJoinData = (function (_super) {
    __extends(DoJoinData, _super);
    function DoJoinData() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    DoJoinData.prototype.update = function (data) {
        if (!data) {
            return;
        }
        _super.prototype.update.call(this, data);
        this.needCredits = data.needCredits;
        if (data.orderId) {
            this.orderId = data.orderId; //老游戏
        }
        else {
            this.orderId = data.data; //新游戏
        }
    };
    return DoJoinData;
}(Data_1.Data));
exports.DoJoinData = DoJoinData;
__reflect(DoJoinData.prototype, "\"/Users/zuopeng/DBGitLab/db-game-template/egret/libs/tw/data/custom/doJoin/DoJoinData\".DoJoinData");
//# sourceMappingURL=DoJoinData.js.map