UNPKG

yimultiscreenserver-sdk-web

Version:

YiMultiScreenServer SDK for Web

28 lines (24 loc) 674 B
import { CastType } from "../cast/CastType"; export class CastSlot { castType: CastType; used: number; max: number; constructor(type: CastType, used: number, max: number) { this.castType = type; this.used = used; this.max = max; } equals(o: any): boolean { return o instanceof CastSlot && this.castType === o.castType && this.max === o.max && this.used === o.used; } toString(): string { return `CastSlot{` + `castType=${CastType[this.castType]}, ` + `used=${this.used}, ` + `max=${this.max}` + `}`; } }