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.
57 lines
1.3 KiB
57 lines
1.3 KiB
//
|
|
// PersonalInformationModel.swift
|
|
// GME Remit
|
|
//
|
|
// Created by Jeongbae Kong on 05/02/2020.
|
|
// Copyright © 2020 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import ObjectMapper
|
|
|
|
struct PersonalInformationModel: Mappable {
|
|
var userId: String?
|
|
var nationality: String?
|
|
var birthday: String?
|
|
var mobile: String?
|
|
var email: String?
|
|
var homeAddress: String?
|
|
var cityName: String?
|
|
var city: [KeyValue]?
|
|
|
|
init?(map: Map) { }
|
|
|
|
mutating func mapping(map: Map) {
|
|
userId <- map["userId"]
|
|
nationality <- map["nationality"]
|
|
birthday <- map["birthday"]
|
|
mobile <- map["mobile"]
|
|
email <- map["email"]
|
|
homeAddress <- map["homeAddress"]
|
|
cityName <- map["cityName"]
|
|
city <- map["City"]
|
|
}
|
|
}
|
|
|
|
extension PersonalInformationModel: Equatable {
|
|
static func == (lhs: PersonalInformationModel, rhs: PersonalInformationModel) -> Bool {
|
|
return lhs.userId == rhs.userId &&
|
|
lhs.nationality == rhs.nationality &&
|
|
lhs.birthday == rhs.birthday &&
|
|
lhs.mobile == rhs.mobile &&
|
|
lhs.email == rhs.email &&
|
|
lhs.homeAddress == rhs.homeAddress &&
|
|
lhs.cityName == rhs.cityName
|
|
|
|
}
|
|
}
|
|
|
|
extension PersonalInformationModel: TablePresenterProtocol {
|
|
var cellTitle: String? {
|
|
return cityName
|
|
}
|
|
|
|
var cellImage: UIImage? {
|
|
return nil
|
|
}
|
|
}
|