"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 GetHomeInfoData = (function (_super) {
    __extends(GetHomeInfoData, _super);
    function GetHomeInfoData() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    GetHomeInfoData.prototype.update = function (result) {
        if (!result) {
            return;
        }
        _super.prototype.update.call(this, result);
        var data;
        if (result.data) {
            data = result.data;
        }
        if (data) {
            this.accountBalanceLimit = data.accountBalanceLimit;
            this.amountPerPiles = data.amountPerPiles;
            this.hasNewInfo = data.hasNewInfo;
            this.hasGift = data.hasGift;
            this.nextPeriodBegin = data.nextPeriodBegin;
            this.usingPetToys = data.usingPetToys;
            this.wanderPet = data.wanderPet;
            this.accountBalance = data.accountBalance;
            this.foodPiles = data.foodPiles;
            this.newUser = data.newUser;
        }
    };
    return GetHomeInfoData;
}(Data_1.Data));
exports.GetHomeInfoData = GetHomeInfoData;
__reflect(GetHomeInfoData.prototype, "\"e:/zqty/egret/libs/tw/data/pets/GetHomeInfoData\".GetHomeInfoData");
//# sourceMappingURL=GetHomeInfoData.js.map