yimultiscreenserver-sdk-web
Version:
YiMultiScreenServer SDK for Web
54 lines (50 loc) • 1.65 kB
text/typescript
export class DisplayDeviceVO {
displayCode: number;
displayDeviceId: string;
displayDeviceName: string;
ip: string;
gateway: string;
mask: string;
outIp: string;
constructor() {
this.displayCode = -1;
this.displayDeviceId = "";
this.displayDeviceName = "";
this.ip = "";
this.gateway = "";
this.mask = "";
this.outIp = "";
}
equals(o: any): boolean {
return o instanceof DisplayDeviceVO &&
this.displayCode === o.displayCode &&
this.displayDeviceId === o.displayDeviceId &&
this.displayDeviceName === o.displayDeviceName &&
this.ip === o.ip &&
this.gateway === o.gateway &&
this.mask === o.mask &&
this.outIp === o.outIp;
}
toString(): string {
return `DisplayDeviceVO{` +
`displayCode=${this.displayCode}, ` +
`displayDeviceId='${this.displayDeviceId}', ` +
`displayDeviceName='${this.displayDeviceName}', ` +
`ip='${this.ip}', ` +
`gateway='${this.gateway}', ` +
`mask='${this.mask}, '` +
`outIp='${this.outIp}'` +
`}`;
}
static copy(vo: DisplayDeviceVO): DisplayDeviceVO {
let device = new DisplayDeviceVO();
device.displayCode = vo.displayCode;
device.displayDeviceId = vo.displayDeviceId;
device.displayDeviceName = vo.displayDeviceName;
device.ip = vo.ip;
device.gateway = vo.gateway;
device.mask = vo.mask;
device.outIp = vo.outIp;
return device;
}
}