allow to request a delivery report when creating the send message request

This commit is contained in:
Florian Thienel 2021-09-25 14:16:08 +02:00
parent 8557bf3627
commit cfc51f472f

View file

@ -360,7 +360,7 @@ func ParseSDSTransfer(bytes []byte) (SDSTransfer, error) {
} }
// NewTextMessageTransfer returns a new SDS-TRANSFER PDU for text messaging with the given parameters // NewTextMessageTransfer returns a new SDS-TRANSFER PDU for text messaging with the given parameters
func NewTextMessageTransfer(messageReference MessageReference, immediate bool, text string) SDSTransfer { func NewTextMessageTransfer(messageReference MessageReference, immediate bool, deliveryReport DeliveryReportRequest, text string) SDSTransfer {
var protocol ProtocolIdentifier var protocol ProtocolIdentifier
if immediate { if immediate {
protocol = ImmediateTextMessaging protocol = ImmediateTextMessaging
@ -369,8 +369,9 @@ func NewTextMessageTransfer(messageReference MessageReference, immediate bool, t
} }
return SDSTransfer{ return SDSTransfer{
protocol: protocol, protocol: protocol,
MessageReference: messageReference, MessageReference: messageReference,
DeliveryReportRequest: deliveryReport,
UserData: TextSDU{ UserData: TextSDU{
TextHeader: TextHeader{ TextHeader: TextHeader{
Encoding: ISO8859_1, Encoding: ISO8859_1,