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.

48 lines
811 B

  1. //
  2. // SuccessMessage.swift
  3. // GMERemittance
  4. //
  5. // Created by gme_2 on 02/10/2018.
  6. // Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import Foundation
  9. import ObjectMapper
  10. class SuccessMessage: Mappable {
  11. var message: String?
  12. var extra: String?
  13. var yearlyLimit: String?
  14. init() {
  15. }
  16. required init?(map: Map) {
  17. }
  18. func mapping(map: Map) {
  19. message <- map["Message"]
  20. extra <- map["Extra"]
  21. yearlyLimit <- map["Extra2"]
  22. }
  23. }
  24. class SuccessMessageContainer: Mappable {
  25. var errorCode: String?
  26. var message: String?
  27. var id: String?
  28. var data: SuccessMessage?
  29. required init?(map: Map) {
  30. }
  31. func mapping(map: Map) {
  32. errorCode <- map["ErrorCode"]
  33. id <- map["Id"]
  34. message <- map["Msg"]
  35. data <- map["Data"]
  36. }
  37. }