init server python để điều khiển adb

This commit is contained in:
Victor Phan
2026-07-21 08:54:30 +07:00
parent d36007d989
commit 7625bdd37b
1557 changed files with 326 additions and 53 deletions
+11
View File
@@ -0,0 +1,11 @@
'use strict';
class ZaloApiError extends Error {
constructor(message, code) {
super(message);
this.name = "ZcaApiError";
this.code = code || null;
}
}
exports.ZaloApiError = ZaloApiError;
@@ -0,0 +1,12 @@
'use strict';
var ZaloApiError = require('./ZaloApiError.cjs');
class ZaloApiLoginQRAborted extends ZaloApiError.ZaloApiError {
constructor(message = "Operation aborted") {
super(message);
this.name = "ZaloApiLoginQRAborted";
}
}
exports.ZaloApiLoginQRAborted = ZaloApiLoginQRAborted;
@@ -0,0 +1,12 @@
'use strict';
var ZaloApiError = require('./ZaloApiError.cjs');
class ZaloApiLoginQRDeclined extends ZaloApiError.ZaloApiError {
constructor(message = "Login QR request declined") {
super(message);
this.name = "ZaloApiLoginQRDeclined";
}
}
exports.ZaloApiLoginQRDeclined = ZaloApiLoginQRDeclined;
@@ -0,0 +1,12 @@
'use strict';
var ZaloApiError = require('./ZaloApiError.cjs');
class ZaloApiMissingImageMetadataGetter extends ZaloApiError.ZaloApiError {
constructor() {
super("Missing `imageMetadataGetter`. Please provide it in the Zalo object options.");
this.name = "ZaloApiMissingImageMetadataGetter";
}
}
exports.ZaloApiMissingImageMetadataGetter = ZaloApiMissingImageMetadataGetter;