Code polish

This commit is contained in:
David Majdandžić
2023-04-05 19:29:26 +02:00
parent 694124a6b7
commit 42493aab50
9 changed files with 18 additions and 15 deletions

View File

@@ -1,5 +1,4 @@
import Center from "../../../Center/Center";
import SmppSession from "../../../SmppSession";
import Postprocessor from "../Postprocessor";
const smpp = require("smpp");

View File

@@ -8,7 +8,7 @@ export default class SubmitSmReplyProcessor extends Postprocessor {
processPdu(session: any, pdu: any, entity?: SmppSession | undefined): Promise<any> {
return new Promise((resolve, reject) => {
if (!!pdu.command && pdu.command === 'submit_sm') {
if (!!pdu.command && pdu.command === 'submit_sm') {
session.send(pdu.response());
resolve(pdu);
}

View File

@@ -3,6 +3,7 @@ import Preprocessor from "../Preprocessor";
export default class DestinationEnumeratorProcessor extends Preprocessor {
private iterator: number = 0;
constructor(type: string) {
super(type);
}

View File

@@ -3,6 +3,7 @@ import Preprocessor from "../Preprocessor";
export default class SourceEnumeratorProcessor extends Preprocessor {
private iterator: number = 0;
constructor(type: string) {
super(type);
}