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.

46 lines
1014 B

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. //
  2. // CardInformation.swift
  3. // GME Remit
  4. //
  5. // Created by InKwon James Kim on 2019/10/21.
  6. // Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import ObjectMapper
  9. struct CardInformation: Mappable {
  10. var mvnoCode: String?
  11. var salePrice: String?
  12. var cardType: String?
  13. var productName: String?
  14. var facePrice: String?
  15. var productType: String?
  16. var planInfo: DetailPlanInformation?
  17. var cardName: String?
  18. var telecomCode: String?
  19. init?(map: Map) {
  20. }
  21. mutating func mapping(map: Map) {
  22. mvnoCode <- map["Mvno_code"]
  23. salePrice <- map["Sale_price"]
  24. cardType <- map["Card_type"]
  25. productName <- map["Product_name"]
  26. facePrice <- map["Face_price"]
  27. productType <- map["Product_type"]
  28. planInfo <- map["Plan_info"]
  29. cardName <- map["Card_name"]
  30. telecomCode <- map["Telecom_code"]
  31. }
  32. }
  33. extension CardInformation: TablePresenterProtocol {
  34. var cellTitle: String? {
  35. return cardName
  36. }
  37. var cellImage: UIImage? {
  38. return nil
  39. }
  40. }