UNPKG

@ginstone/nga-api

Version:

61 lines (60 loc) 1.24 kB
import { VoteResult } from "../../enums/VoteResult"; import { BetOption, VoteOption } from "./Option"; import { VoteType } from "../../enums/VoteType"; export declare class SuperVoteData { /** * 最多选择 x 项 */ maxSelect: number | undefined; /** * 声望限制 */ reputation: number | undefined; /** * 结束时间 */ end: Date | undefined; /** * 结果展示方式 */ result: VoteResult | undefined; /** * 尚未解析的数据,留给子类 */ map: Map<string, string>; /** * 总人次 */ totalCount: number; /** * 总人数 */ total: number; constructor(s: string); } export declare class VoteData extends SuperVoteData { type: VoteType; options: VoteOption[]; constructor(s: string); } export declare class BetData extends SuperVoteData { type: VoteType; /** * 最小投注金额 */ min: number | undefined; /** * 最大投注金额 */ max: number | undefined; /** * 胜出id */ successId: number | undefined; /** * 总投注数 */ totalMoney: number; options: BetOption[]; constructor(s: string); }