From 5b76366baabb6c71ba2b9a591ed7d6f657de82f1 Mon Sep 17 00:00:00 2001 From: Andrew Edwards Date: Tue, 14 Dec 2021 11:38:20 -0500 Subject: [PATCH] More optionals. --- Sources/MessagebirdKit/SMS/Models/Message.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/MessagebirdKit/SMS/Models/Message.swift b/Sources/MessagebirdKit/SMS/Models/Message.swift index 2ba05ff..2e9e1bc 100644 --- a/Sources/MessagebirdKit/SMS/Models/Message.swift +++ b/Sources/MessagebirdKit/SMS/Models/Message.swift @@ -84,9 +84,9 @@ public struct MessageRecipientItem: Codable { /// The name of the operator of the recipient. Identified by MCCMNC of the message. public var recipientOperator: String? /// The length of the message in characters. Depends on the message datacoding. - public var messageLength: Int + public var messageLength: Int? /// 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`. - public var statusReason: MessageRecipientItemStatusReason + public var statusReason: MessageRecipientItemStatusReason? /// A hashmap with extra information about how much the message costs. public var price: MessageRecipientItemPrice? /// The code of the operator of the message sender. It could have null value if the message isn’t delivered yet.