UNPKG

yimultiscreenserver-sdk-web

Version:

YiMultiScreenServer SDK for Web

41 lines (36 loc) 1.16 kB
import { ControllerDeviceType } from "./ControllerDeviceType"; export class ControllerDeviceVO { guid: string; controllerDeviceType: ControllerDeviceType; ip: string; gateway: string; mask: string; outIp: string; constructor() { this.guid = ""; this.controllerDeviceType = ControllerDeviceType.Android; this.ip = ""; this.gateway = ""; this.mask = ""; this.outIp = ""; } equals(o: any): boolean { return o instanceof ControllerDeviceVO && this.guid === o.guid && this.controllerDeviceType === o.controllerDeviceType && this.ip === o.ip && this.gateway === o.gateway && this.mask === o.mask && this.outIp === o.outIp; } toString(): string { return `ControllerDeviceVO{` + `guid=${this.guid}, ` + `controllerDeviceType=${ControllerDeviceType[this.controllerDeviceType]}, ` + `ip='${this.ip}', ` + `gateway='${this.gateway}', ` + `mask='${this.mask}, '` + `outIp='${this.outIp}'` + `}`; } }