"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 });
var Data_1 = require("./../../Data");
/**
 *Created by ck on 2018/10/29
 * 集卡详情
 */
var GetCollectGoodsInfoData = (function (_super) {
    __extends(GetCollectGoodsInfoData, _super);
    function GetCollectGoodsInfoData() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    GetCollectGoodsInfoData.prototype.update = function (data) {
        if (!data) {
            return;
        }
        _super.prototype.update.call(this, data);
        this.collectGoods = data.collectGoods;
        this.prizeLevel = data.prizeLeve;
        this.clickFlag = data.clickFlag;
    };
    /**
     * 根据集卡id获取详情
     * @param id
     */
    GetCollectGoodsInfoData.prototype.getCollectInfoByID = function (id) {
        for (var _i = 0, _a = this.collectGoods; _i < _a.length; _i++) {
            var info = _a[_i];
            if (info.id == id) {
                return info;
            }
        }
        return null;
    };
    return GetCollectGoodsInfoData;
}(Data_1.Data));
exports.GetCollectGoodsInfoData = GetCollectGoodsInfoData;
__reflect(GetCollectGoodsInfoData.prototype, "\"/Users/zuopeng/DBGitLab/db-game-template/egret/libs/tw/data/common/getCollectGoodsInfo/GetCollectGoodsInfoData\".GetCollectGoodsInfoData");
//# sourceMappingURL=GetCollectGoodsInfoData.js.map