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.
36 lines
782 B
36 lines
782 B
//
|
|
// MainCardInformation.swift
|
|
// GME Remit
|
|
//
|
|
// Created by InKwon James Kim on 2019/10/22.
|
|
// Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
import ObjectMapper
|
|
|
|
struct MainCardInformation: Mappable {
|
|
var cardCode: String?
|
|
var cardName: String?
|
|
var facePrice: String?
|
|
var subCardInfo: [CardInformation]?
|
|
|
|
init?(map: Map) {
|
|
}
|
|
|
|
mutating func mapping(map: Map) {
|
|
cardCode <- map["CardCode"]
|
|
facePrice <- map["FacePrice"]
|
|
cardName <- map["CardName"]
|
|
subCardInfo <- map["SubInfo"]
|
|
}
|
|
}
|
|
|
|
extension MainCardInformation: TablePresenterProtocol {
|
|
var cellTitle: String? {
|
|
return "\(cardName ?? "") \(facePrice?.decimalToCurrency(as: .krw, isFront: true) ?? "")"
|
|
}
|
|
|
|
var cellImage: UIImage? {
|
|
return nil
|
|
}
|
|
}
|