Merge branch 'feature/ModelInitUpdate' into 'feature/develop_mvp_3'
added public initializers to models See merge request BPHV_MIPS/mvm_core!212
This commit is contained in:
commit
88f8ee0859
@ -765,9 +765,9 @@
|
|||||||
isa = PBXNativeTarget;
|
isa = PBXNativeTarget;
|
||||||
buildConfigurationList = 8876D5D11FB50A9E00EB2E3D /* Build configuration list for PBXNativeTarget "MVMCore" */;
|
buildConfigurationList = 8876D5D11FB50A9E00EB2E3D /* Build configuration list for PBXNativeTarget "MVMCore" */;
|
||||||
buildPhases = (
|
buildPhases = (
|
||||||
|
8876D5C61FB50A9E00EB2E3D /* Headers */,
|
||||||
8876D5C41FB50A9E00EB2E3D /* Sources */,
|
8876D5C41FB50A9E00EB2E3D /* Sources */,
|
||||||
8876D5C51FB50A9E00EB2E3D /* Frameworks */,
|
8876D5C51FB50A9E00EB2E3D /* Frameworks */,
|
||||||
8876D5C61FB50A9E00EB2E3D /* Headers */,
|
|
||||||
8876D5C71FB50A9E00EB2E3D /* Resources */,
|
8876D5C71FB50A9E00EB2E3D /* Resources */,
|
||||||
);
|
);
|
||||||
buildRules = (
|
buildRules = (
|
||||||
|
|||||||
@ -12,6 +12,13 @@ import Foundation
|
|||||||
open class OpenUrlOptionsModel: Codable {
|
open class OpenUrlOptionsModel: Codable {
|
||||||
public var options: [UIApplication.OpenExternalURLOptionsKey: Any]
|
public var options: [UIApplication.OpenExternalURLOptionsKey: Any]
|
||||||
|
|
||||||
|
//--------------------------------------------------
|
||||||
|
// MARK: - Initializer
|
||||||
|
//--------------------------------------------------
|
||||||
|
public init(options: [UIApplication.OpenExternalURLOptionsKey: Any] = [:]) {
|
||||||
|
self.options = options
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Codable
|
// MARK: - Codable
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|||||||
@ -16,6 +16,11 @@ public class ClientParameterModel: Codable {
|
|||||||
case timeout
|
case timeout
|
||||||
case list
|
case list
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public init(list: [ClientParameterModelProtocol], timeout: Double? = nil) {
|
||||||
|
self.timeout = timeout
|
||||||
|
self.list = list
|
||||||
|
}
|
||||||
|
|
||||||
required public init(from decoder: Decoder) throws {
|
required public init(from decoder: Decoder) throws {
|
||||||
let typeContainer = try decoder.container(keyedBy: CodingKeys.self)
|
let typeContainer = try decoder.container(keyedBy: CodingKeys.self)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user