Implement client sending
This commit is contained in:
14
src/Job.ts
14
src/Job.ts
@@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user