Hi,
byte srcTon = byte.Parse("0");
byte srcNpi = byte.Parse("0");
string srcAdr = "xxxxx";
byte dstTon = byte.Parse("1");
byte dstNpi = byte.Parse("1");
string dstAdr = "xxxxxxx";
ISubmitSmBuilder builder = SMS.ForSubmit()
.From(srcAdr, srcTon, srcNpi)
.To(dstAdr, dstTon, dstNpi)
.Coding(coding)
.Text("Heello")
.ExpireIn(TimeSpan.FromDays(2))
.DeliveryReceipt();
SubmitMode mode = SubmitMode.ShortMessage;
switch (mode)
{
case SubmitMode.Payload:
builder.MessageInPayload();
break;
case SubmitMode.ShortMessageWithSAR:
builder.ConcatenationInSAR();
break;
}
//Here before submiting can we get the pdu created
_client.SubmitAsync(builder);
And is there any function to decode pdu to object.
Thanks