added new id property to models
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
529dd348dd
commit
31cc35d5d3
@ -9,11 +9,13 @@
|
||||
import MVMCoreUI
|
||||
|
||||
@objcMembers public class LinksModel: MoleculeModelProtocol {
|
||||
@DecodableDefault.UUIDString public var id: String
|
||||
public static var identifier: String = "links"
|
||||
public var backgroundColor: Color?
|
||||
public var links: [LinkModel]
|
||||
|
||||
private enum CodingKeys: String, CodingKey {
|
||||
case id
|
||||
case moleculeName
|
||||
case backgroundColor
|
||||
case links
|
||||
|
||||
@ -13,7 +13,8 @@ open class OrderTrackerModel: MoleculeModelProtocol {
|
||||
//--------------------------------------------------
|
||||
// MARK: - Properties
|
||||
//--------------------------------------------------
|
||||
|
||||
@DecodableDefault.UUIDString public var id: String
|
||||
|
||||
public var backgroundColor: Color?
|
||||
|
||||
public static var identifier: String = "orderTracker"
|
||||
@ -24,6 +25,7 @@ open class OrderTrackerModel: MoleculeModelProtocol {
|
||||
//--------------------------------------------------
|
||||
|
||||
private enum CodingKeys: String, CodingKey {
|
||||
case id
|
||||
case moleculeName
|
||||
case backgroundColor
|
||||
case steps
|
||||
|
||||
@ -13,7 +13,7 @@ open class StepModel: MoleculeModelProtocol {
|
||||
//--------------------------------------------------
|
||||
// MARK: - Properties
|
||||
//--------------------------------------------------
|
||||
|
||||
@DecodableDefault.UUIDString public var id: String
|
||||
public var backgroundColor: Color?
|
||||
|
||||
public static var identifier: String = "step"
|
||||
@ -71,6 +71,7 @@ open class StepModel: MoleculeModelProtocol {
|
||||
//--------------------------------------------------
|
||||
|
||||
private enum CodingKeys: String, CodingKey {
|
||||
case id
|
||||
case moleculeName
|
||||
case backgroundColor
|
||||
case state
|
||||
|
||||
Loading…
Reference in New Issue
Block a user