Class SmppMessageExtension
Extension methods for SMPP PDU classes.
public static class SmppMessageExtension
- Inheritance
-
SmppMessageExtension
- Inherited Members
Methods
GetMessageBytes<TPDU>(TPDU)
Gets message bytes contained in the PDU instance without user data header.
public static byte[] GetMessageBytes<TPDU>(this TPDU pdu) where TPDU : SmppPDU
Parameters
pdu
TPDUThe PDU instance
Returns
- byte[]
The message bytes.
Type Parameters
TPDU
GetMessageText(SmppPDU, EncodingMapper)
A SmppPDU extension method that gets message text contained in the PDU instance.
public static string GetMessageText(this SmppPDU pdu, EncodingMapper mapper)
Parameters
pdu
SmppPDUThe PDU instance
mapper
EncodingMapperThe Encoding mapper.
Returns
- string
The message text.