"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");
var AjaxElementDataNew = (function (_super) {
    __extends(AjaxElementDataNew, _super);
    function AjaxElementDataNew() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    AjaxElementDataNew.prototype.update = function (result) {
        if (!result) {
            return;
        }
        _super.prototype.update.call(this, result);
        this.throughCurrent = result.throughCurrent;
        this.throughMode = result.throughMode;
        this.throughNum = result.throughNum;
        this.throughCurrentStep = result.throughCurrentStep;
        this.jsTest = result.jsTest;
        this.cssTest = result.cssTest;
        this.rule = result.rule;
        this.type = result.type;
        this.options = result.options;
        this.element = result.element;
        this.creditsConf = result.creditsConf;
        this.questions = result.questions;
        var thanksList = this.options.filter(function (opt) { return opt.prizeType == 'thanks'; });
        if (thanksList)
            this.thanksOpt = thanksList[0];
    };
    return AjaxElementDataNew;
}(Data_1.Data));
exports.AjaxElementDataNew = AjaxElementDataNew;
__reflect(AjaxElementDataNew.prototype, "\"/Users/zuopeng/DBGitLab/db-game-template/egret/libs/tw/data/custom/ajaxElement/AjaxElementDataNew\".AjaxElementDataNew");
//# sourceMappingURL=AjaxElementDataNew.js.map