You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.0 KiB

4 years ago
  1. //
  2. // NotificationFetch.swift
  3. // GME Remit
  4. //
  5. // Created by Shiran on 10/6/20.
  6. // Copyright © 2020 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import Foundation
  9. import ObjectMapper
  10. class NotificationFetch: Mappable {
  11. var errorCode: String?
  12. var message: String?
  13. var id: String?
  14. var extra: String?
  15. var data: [ResponseData]?
  16. required init?(map: Map) {
  17. }
  18. func mapping(map: Map) {
  19. errorCode <- map["ErrorCode"]
  20. message <- map["Msg"]
  21. id <- map["Id"]
  22. extra <- map["Extra"]
  23. data <- map["Data"]
  24. }
  25. }
  26. class ResponseData: Mappable {
  27. var rowId: String?
  28. var isRead: String?
  29. var title: String?
  30. var createDate: String?
  31. var type: String?
  32. var extra: String?
  33. required init?(map: Map) {
  34. }
  35. func mapping(map: Map) {
  36. rowId <- map["rowId"]
  37. isRead <- map["isRead"]
  38. title <- map["title"]
  39. createDate <- map["createDate"]
  40. type <- map["type"]
  41. extra <- map["extra"]
  42. }
  43. }