[FIX] Add missing keys to push get payload (#2358)

This commit is contained in:
Djorkaeff Alexandre 2020-07-30 14:10:13 -03:00 committed by GitHub
parent e05aa1eb52
commit 8cd38d5e19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -37,10 +37,13 @@ class JsonResponse {
Sender sender; Sender sender;
String messageId; String messageId;
String notificationType; String notificationType;
String name;
String messageType;
class Sender { class Sender {
String username;
String _id; String _id;
String username;
String name;
} }
} }
} }

View File

@ -22,11 +22,12 @@ struct PushResponse: Decodable {
let messageId: String let messageId: String
let notificationType: String? let notificationType: String?
let name: String? let name: String?
let messageType: String?
struct Sender: Decodable, Encodable { struct Sender: Decodable, Encodable {
let _id: String let _id: String
let username: String let username: String
let name: String let name: String?
} }
} }
} }