[FIX] Add missing keys to push get payload (#2358)
This commit is contained in:
parent
e05aa1eb52
commit
8cd38d5e19
|
@ -37,10 +37,13 @@ class JsonResponse {
|
|||
Sender sender;
|
||||
String messageId;
|
||||
String notificationType;
|
||||
String name;
|
||||
String messageType;
|
||||
|
||||
class Sender {
|
||||
String username;
|
||||
String _id;
|
||||
String username;
|
||||
String name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,11 +22,12 @@ struct PushResponse: Decodable {
|
|||
let messageId: String
|
||||
let notificationType: String?
|
||||
let name: String?
|
||||
let messageType: String?
|
||||
|
||||
struct Sender: Decodable, Encodable {
|
||||
let _id: String
|
||||
let username: String
|
||||
let name: String
|
||||
let name: String?
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue