Skip to content

Commit 5b76366

Browse files
authored
More optionals.
1 parent 5ff6c1f commit 5b76366

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/MessagebirdKit/SMS/Models/Message.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ public struct MessageRecipientItem: Codable {
8484
/// The name of the operator of the recipient. Identified by MCCMNC of the message.
8585
public var recipientOperator: String?
8686
/// The length of the message in characters. Depends on the message datacoding.
87-
public var messageLength: Int
87+
public var messageLength: Int?
8888
/// The details about the message status. Possible values: `successfully delivered`, `pending DLR`, `DLR not received`, `incorrect number`, `unknown subscriber`, `expired`, `timeout`, and `generic delivery failure`.
89-
public var statusReason: MessageRecipientItemStatusReason
89+
public var statusReason: MessageRecipientItemStatusReason?
9090
/// A hashmap with extra information about how much the message costs.
9191
public var price: MessageRecipientItemPrice?
9292
/// The code of the operator of the message sender. It could have null value if the message isn’t delivered yet.

0 commit comments

Comments
 (0)