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.

31 lines
531 B

  1. //
  2. // PriceModel.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 PriceModel: Mappable {
  10. var price: String?
  11. init?(map: Map) {
  12. }
  13. mutating func mapping(map: Map) {
  14. price <- map["Price"]
  15. }
  16. }
  17. extension PriceModel: TablePresenterProtocol {
  18. var cellTitle: String? {
  19. return price?.decimalToCurrency(as: .krw, isFront: true)
  20. }
  21. var cellImage: UIImage? {
  22. return nil
  23. }
  24. }