gme_2
6 years ago
4 changed files with 72 additions and 4 deletions
-
4GMERemittance.xcodeproj/project.pbxproj
-
64GMERemittance/Model/KycModel.swift
-
6GMERemittance/Module/New Group/kycForm1/Application Logic/Service/kycForm1ServiceType.swift
-
2GMERemittance/Module/New Group/kycForm1/User Interface/View/kycForm1ViewController.swift
@ -0,0 +1,64 @@ |
|||
// |
|||
// KycModel.swift |
|||
// GMERemittance |
|||
// |
|||
// Created by gme_2 on 14/09/2018. |
|||
// Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved. |
|||
// |
|||
|
|||
import Foundation |
|||
import ObjectMapper |
|||
|
|||
|
|||
class KycModelContainer: Mappable { |
|||
var errorCode: String? |
|||
var message: String? |
|||
var id: String? |
|||
var data: KycModel? |
|||
|
|||
required init?(map: Map) { |
|||
|
|||
} |
|||
|
|||
func mapping(map: Map) { |
|||
errorCode <- map["ErrorCode"] |
|||
message <- map["Msg"] |
|||
id <- map["Id"] |
|||
data <- map["Data"] |
|||
} |
|||
} |
|||
|
|||
class KycModel: Mappable { |
|||
var nativeCountry: [KeyValueModel]? |
|||
var city: [KeyValueModel]? |
|||
var occupation: [KeyValueModel]? |
|||
var bank: [KeyValueModel]? |
|||
var idType: [KeyValueModel]? |
|||
|
|||
required init?(map: Map) { |
|||
|
|||
} |
|||
|
|||
func mapping(map: Map) { |
|||
nativeCountry <- map["NativeCountry"] |
|||
city <- map["City"] |
|||
occupation <- map["Occupation"] |
|||
bank <- map["Bank"] |
|||
idType <- map["IdType"] |
|||
} |
|||
} |
|||
|
|||
|
|||
class KeyValueModel: Mappable { |
|||
var id: String? |
|||
var text: String? |
|||
|
|||
required init?(map: Map) { |
|||
|
|||
} |
|||
|
|||
func mapping(map: Map) { |
|||
id <- map["id"] |
|||
text <- map["text"] |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue