@psdk/esc 0.7.8 → 0.7.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { BasicESCArg } from "./basic";
|
|
2
2
|
import { CommandClause } from "@psdk/frame-father";
|
|
3
3
|
export declare class ESetCurrentTime extends BasicESCArg<ESetCurrentTime> {
|
|
4
|
-
private hour;
|
|
5
|
-
private minute;
|
|
6
4
|
private second;
|
|
5
|
+
private minute;
|
|
6
|
+
private hour;
|
|
7
|
+
private day;
|
|
8
|
+
private week;
|
|
9
|
+
private month;
|
|
10
|
+
private year;
|
|
7
11
|
constructor(options: {
|
|
8
|
-
hour?: number;
|
|
9
|
-
minute?: number;
|
|
10
12
|
second?: number;
|
|
13
|
+
minute?: number;
|
|
14
|
+
hour?: number;
|
|
15
|
+
day?: number;
|
|
16
|
+
week?: number;
|
|
17
|
+
mouth?: number;
|
|
18
|
+
year?: number;
|
|
11
19
|
});
|
|
12
20
|
clause(): CommandClause;
|
|
13
21
|
header(): Uint8Array;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setcurrenttime.d.ts","sourceRoot":"","sources":["../../src/args/setcurrenttime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,SAAS,CAAC;AACpC,OAAO,EAAC,aAAa,EAAgB,MAAM,oBAAoB,CAAC;AAGhE,qBAAa,eAAgB,SAAQ,WAAW,CAAC,eAAe,CAAC;IAC/D,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"setcurrenttime.d.ts","sourceRoot":"","sources":["../../src/args/setcurrenttime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,SAAS,CAAC;AACpC,OAAO,EAAC,aAAa,EAAgB,MAAM,oBAAoB,CAAC;AAGhE,qBAAa,eAAgB,SAAQ,WAAW,CAAC,eAAe,CAAC;IAC/D,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,IAAI,CAAS;gBACT,OAAO,EAAE;QACnB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;IAWD,MAAM,IAAI,aAAa;IAYvB,MAAM,IAAI,UAAU;CAIrB"}
|
|
@@ -4,24 +4,36 @@ exports.ESetCurrentTime = void 0;
|
|
|
4
4
|
const basic_1 = require("./basic");
|
|
5
5
|
const frame_father_1 = require("@psdk/frame-father");
|
|
6
6
|
class ESetCurrentTime extends basic_1.BasicESCArg {
|
|
7
|
-
hour;
|
|
8
|
-
minute;
|
|
9
7
|
second;
|
|
8
|
+
minute;
|
|
9
|
+
hour;
|
|
10
|
+
day;
|
|
11
|
+
week;
|
|
12
|
+
month;
|
|
13
|
+
year;
|
|
10
14
|
constructor(options) {
|
|
11
15
|
super();
|
|
12
|
-
this.hour = options.hour ?? 0;
|
|
13
|
-
this.minute = options.minute ?? 0;
|
|
14
16
|
this.second = options.second ?? 0;
|
|
17
|
+
this.minute = options.minute ?? 0;
|
|
18
|
+
this.hour = options.hour ?? 0;
|
|
19
|
+
this.day = options.day ?? 0;
|
|
20
|
+
this.week = options.week ?? 0;
|
|
21
|
+
this.month = options.mouth ?? 0;
|
|
22
|
+
this.year = options.year ?? 0;
|
|
15
23
|
}
|
|
16
24
|
clause() {
|
|
17
25
|
return frame_father_1.BinaryCommand.with(this.header())
|
|
18
|
-
.appendNumber(this.hour)
|
|
19
|
-
.appendNumber(this.minute)
|
|
20
26
|
.appendNumber(this.second)
|
|
27
|
+
.appendNumber(this.minute)
|
|
28
|
+
.appendNumber(this.hour)
|
|
29
|
+
.appendNumber(this.day)
|
|
30
|
+
.appendNumber(this.week)
|
|
31
|
+
.appendNumber(this.month)
|
|
32
|
+
.appendNumber(this.year)
|
|
21
33
|
.clause();
|
|
22
34
|
}
|
|
23
35
|
header() {
|
|
24
|
-
return new Uint8Array([0x10, 0xFF,
|
|
36
|
+
return new Uint8Array([0x10, 0xFF, 0x14, 0x02]);
|
|
25
37
|
}
|
|
26
38
|
}
|
|
27
39
|
exports.ESetCurrentTime = ESetCurrentTime;
|