Compare commits

...

1 Commits

Author SHA1 Message Date
Matt Bruce
31cc35d5d3 added new id property to models
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2023-09-08 09:46:17 -05:00
3 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -13,6 +13,7 @@ open class OrderTrackerModel: MoleculeModelProtocol {
//--------------------------------------------------
// MARK: - Properties
//--------------------------------------------------
@DecodableDefault.UUIDString public var id: String
public var backgroundColor: Color?
@ -24,6 +25,7 @@ open class OrderTrackerModel: MoleculeModelProtocol {
//--------------------------------------------------
private enum CodingKeys: String, CodingKey {
case id
case moleculeName
case backgroundColor
case steps

View File

@ -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