Table of Contents

Class Receipt

Namespace
Inetlab.SMPP.Common
Assembly
Inetlab.SMPP.dll

Represents Delivery receipt

public class Receipt
Inheritance
Receipt
Inherited Members

Constructors

Receipt()

public Receipt()

Properties

Delivered

Number of short messages delivered. This is only relevant where the original message was submitted to a distribution list

public int Delivered { get; set; }

Property Value

int

DoneDate

The time and date at which the short message reached it�s final state.

public DateTime DoneDate { get; set; }

Property Value

DateTime

ErrorCode

Network specific error code or an SMSC error code for the attempted delivery of the message.

public string ErrorCode { get; set; }

Property Value

string

Items

public SortedList<string, string> Items { get; }

Property Value

SortedList<string, string>

MessageId

The message ID allocated to the message by the SMSC when originally submitted. You can get it from SUBMIT_SM_RESP.

public string MessageId { get; set; }

Property Value

string

State

The final status of the message.

public MessageState State { get; set; }

Property Value

MessageState

SubmitDate

The time and date at which the short message was submitted.

public DateTime SubmitDate { get; set; }

Property Value

DateTime

Submitted

Number of short messages originally submitted. This is only relevant when the original message was submitted to a distribution list.

public int Submitted { get; set; }

Property Value

int

Text

The first 20 characters of the short message.

public string Text { get; set; }

Property Value

string

Methods

Create(byte[], Encoding, Encoding)

public static Receipt Create(byte[] messageBytes, Encoding messageEncoding, Encoding textEncoding)

Parameters

messageBytes byte[]
messageEncoding Encoding
textEncoding Encoding

Returns

Receipt

Parse(string)

public void Parse(string text)

Parameters

text string

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.