Code polish
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import Center from "../../../Center/Center";
|
||||
import SmppSession from "../../../SmppSession";
|
||||
import Postprocessor from "../Postprocessor";
|
||||
|
||||
const smpp = require("smpp");
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ import Preprocessor from "../Preprocessor";
|
||||
|
||||
export default class DestinationEnumeratorProcessor extends Preprocessor {
|
||||
private iterator: number = 0;
|
||||
|
||||
constructor(type: string) {
|
||||
super(type);
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ import Preprocessor from "../Preprocessor";
|
||||
|
||||
export default class SourceEnumeratorProcessor extends Preprocessor {
|
||||
private iterator: number = 0;
|
||||
|
||||
constructor(type: string) {
|
||||
super(type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user