"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 DataManager_1 = require("./../../../manager/DataManager");
var Data_1 = require("./../../Data");
var GameSubmitData = (function (_super) {
    __extends(GameSubmitData, _super);
    function GameSubmitData() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    /**
     * 更新
     * @param result
     */
    GameSubmitData.prototype.update = function (result) {
        _super.prototype.update.call(this, result);
        if (result.data) {
            this.orderId = result.data.orderId;
            this.percentage = DataManager_1.DataManager.ins.getInfoData.percentage = result.data.rsp.percentage;
        }
    };
    return GameSubmitData;
}(Data_1.Data));
exports.GameSubmitData = GameSubmitData;
__reflect(GameSubmitData.prototype, "\"/Users/chiwang/Desktop/\u5151\u5427\u5DE5\u4F5C/gameegret20181011/db-game-template/egret/libs/tw/data/game/submit/GameSubmitData\".GameSubmitData");
//# sourceMappingURL=GameSubmitData.js.map