import {PDU} from "../../../CommonObjects"; import SmppSession from "../../../SmppSession"; import Preprocessor from "../Preprocessor"; export default class GSM0338Preprocessor extends Preprocessor { applicableCommands: string[] = ['submit_sm', 'deliver_sm']; constructor(type: string) { super(type); } protected doProcess(session: any, pdu: PDU, entity?: SmppSession | undefined): Promise { return new Promise((resolve, reject) => { pdu.data_coding = 0xf6; }); } }