| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import { Data } from "../core/data/Data";
- import { Http } from "../core/net/Http";
- /**
- * 红点数据
- */
- export class RedPointData extends Data {
- /**
- * 可领取图鉴武将奖励的列表
- */
- public herosReward: number[] = [];
- /**
- * 是否可抽奖
- */
- public canDraw: boolean = false;
- /**
- * 是否可领取贡献
- */
- public checkFission: boolean = false;
- /**
- *是否可领取切磋宝箱
- */
- public canReceiveFightBox: boolean = false;
- /**
- * 征粮数据
- */
- public grainLevies: {
- times: number;
- leviesDatas: {
- index: number;
- finishTime: number;
- isReceive: boolean;
- }[];
- }
- /**
- * 从服务端拉取数据
- * @param http
- */
- public async pull(http: Http) {
- let result = await http.send("/api/user/redpoint");
- if (result && result.data) {
- this.copy(result.data);
- }
- }
- }
|