Class SubmitSm
- Namespace
- Inetlab.SMPP.PDU
- Assembly
- cs.temp.dll.dll
SubmitSm PDU to submit a short message to the SMSC
public class SubmitSm : SmppRequest<SubmitSmResp>, ISmppMessage, ISerializable
- Inheritance
-
ObjectSubmitSm
- Implements
-
ISmppMessageISerializable
- Inherited Members
Constructors
SubmitSm()
public SubmitSm()
SubmitSm(SerializationInfo, StreamingContext)
protected SubmitSm(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfocontext
StreamingContext
SubmitSm(String, Byte, Byte, String, Byte, Byte, String)
public SubmitSm(string serviceType, byte srcTon, byte srcNpi, string srcAddr, byte destTon, byte destNpi, string destAddr)
Parameters
serviceType
StringsrcTon
BytesrcNpi
BytesrcAddr
StringdestTon
BytedestNpi
BytedestAddr
String
Properties
Acknowledgement
public SMEAcknowledgement Acknowledgement { get; set; }
Property Value
Concatenation
Gets concatenation parameters.
public Concatenation Concatenation { get; }
Property Value
- Concatenation
ConcatenationKey
public string ConcatenationKey { get; }
Property Value
- String
DataCoding
Defines the encoding scheme of the short message user data.
public DataCodings DataCoding { get; set; }
Property Value
- DataCodings
DefaultMessageId
Indicates the short message to send from a list of predefined (‘canned’) short messages stored on the SMSC. If not using an SMSC canned message, set to 0.
public byte DefaultMessageId { get; set; }
Property Value
- Byte
DestAddr
Destination address of this short message.
public string DestAddr { get; set; }
Property Value
- String
DestAddrNpi
Numbering Plan Indicator for destination.
public byte DestAddrNpi { get; set; }
Property Value
- Byte
DestAddrTon
Type of Number for destination.
public byte DestAddrTon { get; set; }
Property Value
- Byte
EsmClass
Indicates Message Mode and Message Type.
public byte EsmClass { get; set; }
Property Value
- Byte
MessageFeature
public GSMSpecificFeatures MessageFeature { get; set; }
Property Value
MessageMode
public MessageModes MessageMode { get; set; }
Property Value
MessageText
Gets message text in specified data coding.
public string MessageText { get; }
Property Value
- String
MessageType
public MessageTypes MessageType { get; set; }
Property Value
Notification
public IntermediateNotification Notification { get; set; }
Property Value
Optional
public TLVCollection Optional { get; set; }
Property Value
- TLVCollection
PriorityFlag
Designates the priority level of the message.
public byte PriorityFlag { get; set; }
Property Value
- Byte
ProtocolId
Protocol Identifier. Network specific field.
public byte ProtocolId { get; set; }
Property Value
- Byte
RegisteredDelivery
Indicator to signify if an SMSC delivery receipt or an SME acknowledgement is required.
public byte RegisteredDelivery { get; set; }
Property Value
- Byte
ReplaceIfPresent
Flag indicating if submitted message should replace an existing message.
public byte ReplaceIfPresent { get; set; }
Property Value
- Byte
ScheduledDeliveryTime
The short message is to be scheduled by the SMSC for delivery.
Set to NULL for immediate message delivery.
public string ScheduledDeliveryTime { get; set; }
Property Value
- String
ServiceType
Indicates the SMS Application service associated with the message
public string ServiceType { get; set; }
Property Value
- String
SMSCReceipt
public SMSCDeliveryReceipt SMSCReceipt { get; set; }
Property Value
SourceAddr
Address of SME which originated this message.
public string SourceAddr { get; set; }
Property Value
- String
SourceAddrNpi
Numbering Plan Indicator for source address.
public byte SourceAddrNpi { get; set; }
Property Value
- Byte
SourceAddrTon
Type of Number for source address.
public byte SourceAddrTon { get; set; }
Property Value
- Byte
UserDataPdu
public UserData UserDataPdu { get; set; }
Property Value
- UserData
ValidityPeriod
The validity period of this message. Set to NULL to request the SMSC default validity period.
Format 'YYMMDDhhmmsstnnp'.
public string ValidityPeriod { get; set; }
Property Value
- String
Methods
CorrespondTo(SmppResponse)
public override bool CorrespondTo(SmppResponse response)
Parameters
response
SmppResponse
Returns
- Boolean
Deserialize(Byte[])
Deserializes byte array to the SubmitSm object
public static SubmitSm Deserialize(byte[] data)
Parameters
data
Byte[]- Byte array to deseriaize
Returns
- SubmitSm
- Returns SubmitSm object
Serialize(SubmitSm)
Serializes SubmitSm object to the byte array
public static byte[] Serialize(SubmitSm submit)
Parameters
submit
SubmitSm- SubmitSm object to serialize
Returns
- Byte[]
- Returns byte array
ToString()
public override string ToString()
Returns
- String