yimultiscreenserver-sdk-web
Version:
YiMultiScreenServer SDK for Web
29 lines • 899 B
JavaScript
export class AccountBindDeviceResponse {
constructor() {
this.boundDisplayDevices = [];
}
equals(o) {
return o instanceof AccountBindDeviceResponse &&
this.arraysEqual(this.boundDisplayDevices, o.boundDisplayDevices);
}
toString() {
return `AccountBindDeviceResponse{` +
`boundDisplayDevices=${this.boundDisplayDevices.map(c => c.toString()).join(", ")}, ` +
`}`;
}
arraysEqual(a, b) {
// 首先检查数组长度
if (a.length !== b.length) {
return false;
}
// 检查每个元素是否相等
for (let i = 0; i < a.length; i++) {
if (a[i] !== b[i]) {
return false;
}
}
// 如果所有元素都相等,那么数组相等
return true;
}
}
//# sourceMappingURL=AccountBindDeviceResponse.js.map