Table of Contents

Class SmppMessageExtension

Namespace
Inetlab.SMPP.PDU
Assembly
Inetlab.SMPP.dll

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 TPDU

The 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 SmppPDU

The PDU instance

mapper EncodingMapper

The Encoding mapper.

Returns

string

The message text.