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.

44 lines
788 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. required init?(map: Map) {
  15. }
  16. func mapping(map: Map) {
  17. message <- map["Message"]
  18. extra <- map["Extra"]
  19. yearlyLimit <- map["Extra2"]
  20. }
  21. }
  22. class SuccessMessageContainer: Mappable {
  23. var errorCode: String?
  24. var message: String?
  25. var id: String?
  26. var data: SuccessMessage?
  27. required init?(map: Map) {
  28. }
  29. func mapping(map: Map) {
  30. errorCode <- map["ErrorCode"]
  31. id <- map["Id"]
  32. message <- map["Msg"]
  33. data <- map["Data"]
  34. }
  35. }