"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 PetFeedData = (function (_super) {
    __extends(PetFeedData, _super);
    function PetFeedData() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    PetFeedData.prototype.update = function (result) {
        if (!result) {
            return;
        }
        result.message = result.message; //window['errorMessage'] ? window['errorMessage'][result.errorCode] : "";
        _super.prototype.update.call(this, result);
        this.errorCode = result.errorCode;
        if (result.data) {
            this.status = result.data.status;
            this.foodNum = result.data.foodNum;
            this.isLevelUp = result.data.isLevelUp;
            this.levelPluginId = result.data.levelPluginId;
            this.leftMinutes = result.data.leftMinutes;
            this.feedIntervalRemain = result.data.feedIntervalRemain;
        }
    };
    return PetFeedData;
}(Data_1.Data));
exports.PetFeedData = PetFeedData;
__reflect(PetFeedData.prototype, "\"c:/Users/duiba/Documents/zhonghe_answer/egret/libs/tw/data/pet/PetFeedData\".PetFeedData");
//# sourceMappingURL=PetFeedData.js.map