Implement client sending

This commit is contained in:
David Majdandžić
2023-03-28 03:12:32 +02:00
parent 6e6848233d
commit f0c1cae0e0
4 changed files with 130 additions and 30 deletions

View File

@@ -1,9 +1,11 @@
const smpp = require("smpp");
export class Job {
pdu: object;
pdu: any;
perSecond?: number;
count?: number;
constructor(pdu: object, perSecond?: number, count?: number) {
constructor(pdu: any, perSecond?: number, count?: number) {
this.pdu = pdu;
this.perSecond = perSecond;
this.count = count;
@@ -12,4 +14,12 @@ export class Job {
serialize(): string {
return JSON.stringify(this);
}
static createEmptySingle(): Job {
return new Job({});
}
static createEmptyMultiple(): Job {
return new Job({}, 1, 1);
}
}