"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 PetAdopteData = (function (_super) {
    __extends(PetAdopteData, _super);
    function PetAdopteData() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    PetAdopteData.prototype.update = function (result) {
        if (!result) {
            return;
        }
        _super.prototype.update.call(this, result);
        if (!result.data) {
            return;
        }
        result = result.data;
        this.petId = result.petId;
        this.activityId = result.activityId;
        this.petName = result.petName;
        this.petLevel = result.petLevel;
        this.totalReceivedNum = result.totalReceivedNum;
        this.totalEatNum = result.totalEatNum;
        this.status = result.status;
        this.foodNum = result.foodNum;
        this.leftMinutes = result.leftMinutes;
    };
    return PetAdopteData;
}(Data_1.Data));
exports.PetAdopteData = PetAdopteData;
__reflect(PetAdopteData.prototype, "\"/Users/zuopeng/DBGitLab/db-game-template/egret/libs/tw/data/pet/PetAdopteData\".PetAdopteData");
//# sourceMappingURL=PetAdopteData.js.map