"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");
/**
 *Created by cuiliqiang on 2018/3/9
 * 时时排行榜数据
 */
var RealTimeRankData = (function (_super) {
    __extends(RealTimeRankData, _super);
    function RealTimeRankData() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    RealTimeRankData.prototype.update = function (data) {
        if (!data) {
            return;
        }
        _super.prototype.update.call(this, data);
        this.inRank = data.data.inRank;
        if (data.data.user) {
            this.myUserData = data.data.user;
            DataManager_1.DataManager.ins.getInfoData.rank = this.myUserData.rank;
        }
        this.userList = data.data.userList;
    };
    return RealTimeRankData;
}(Data_1.Data));
exports.RealTimeRankData = RealTimeRankData;
__reflect(RealTimeRankData.prototype, "\"c:/Users/duiba/Documents/zhonghe_answer/egret/libs/tw/data/game/realtimerank/RealTimeRankData\".RealTimeRankData");
//# sourceMappingURL=RealTimeRankData.js.map