@@ -43,9 +43,6 @@ public class Message {
4343 /// Status of delivery.
4444 public let status : String
4545
46- /// Message description.
47- public let description : String ? ?
48-
4946
5047 init (
5148 id: String ,
@@ -60,8 +57,7 @@ public class Message {
6057 deliveryErrors: [ Any ] ? ? ,
6158 deliveredTotal: Int ,
6259 data: Any ,
63- status: String ,
64- description: String ? ?
60+ status: String
6561 ) {
6662 self . id = id
6763 self . createdAt = createdAt
@@ -76,7 +72,6 @@ public class Message {
7672 self . deliveredTotal = deliveredTotal
7773 self . data = data
7874 self . status = status
79- self . description = description
8075 }
8176
8277 public func toMap( ) -> [ String : Any ] {
@@ -93,8 +88,7 @@ public class Message {
9388 " deliveryErrors " : deliveryErrors as Any ,
9489 " deliveredTotal " : deliveredTotal as Any ,
9590 " data " : data as Any ,
96- " status " : status as Any ,
97- " description " : description as Any
91+ " status " : status as Any
9892 ]
9993 }
10094
@@ -112,8 +106,7 @@ public class Message {
112106 deliveryErrors: map [ " deliveryErrors " ] as? [ Any ] ? ,
113107 deliveredTotal: map [ " deliveredTotal " ] as! Int ,
114108 data: map [ " data " ] as! Any ,
115- status: map [ " status " ] as! String ,
116- description: map [ " description " ] as? String ?
109+ status: map [ " status " ] as! String
117110 )
118111 }
119112}
0 commit comments