removed ContainerModel
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
8fd6a2e7c4
commit
79cccbb471
@ -7,7 +7,7 @@
|
|||||||
//
|
//
|
||||||
import VDS
|
import VDS
|
||||||
|
|
||||||
open class NotificationMoleculeModel: ContainerModel, MoleculeModelProtocol {
|
open class NotificationMoleculeModel: MoleculeModelProtocol {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The style of the notification:
|
The style of the notification:
|
||||||
@ -39,7 +39,7 @@ open class NotificationMoleculeModel: ContainerModel, MoleculeModelProtocol {
|
|||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Properties
|
// MARK: - Properties
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
public var id: String = UUID().uuidString
|
||||||
public class var identifier: String { "notification" }
|
public class var identifier: String { "notification" }
|
||||||
public var accessibilityIdentifier: String?
|
public var accessibilityIdentifier: String?
|
||||||
public var backgroundColor: Color?
|
public var backgroundColor: Color?
|
||||||
@ -63,15 +63,6 @@ open class NotificationMoleculeModel: ContainerModel, MoleculeModelProtocol {
|
|||||||
self.button = button
|
self.button = button
|
||||||
self.secondaryButton = secondaryButton
|
self.secondaryButton = secondaryButton
|
||||||
self.closeButton = closeButton
|
self.closeButton = closeButton
|
||||||
super.init()
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------
|
|
||||||
// MARK: - Default
|
|
||||||
//--------------------------------------------------
|
|
||||||
|
|
||||||
open override func setDefaults() {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
@ -107,10 +98,9 @@ open class NotificationMoleculeModel: ContainerModel, MoleculeModelProtocol {
|
|||||||
if let style = try typeContainer.decodeIfPresent(NotificationMoleculeModel.Style.self, forKey: .style) {
|
if let style = try typeContainer.decodeIfPresent(NotificationMoleculeModel.Style.self, forKey: .style) {
|
||||||
self.style = style
|
self.style = style
|
||||||
}
|
}
|
||||||
super.init()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
open override func encode(to encoder: Encoder) throws {
|
open func encode(to encoder: Encoder) throws {
|
||||||
var container = encoder.container(keyedBy: CodingKeys.self)
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
||||||
try container.encode(moleculeName, forKey: .moleculeName)
|
try container.encode(moleculeName, forKey: .moleculeName)
|
||||||
try container.encodeIfPresent(accessibilityIdentifier, forKey: .accessibilityIdentifier)
|
try container.encodeIfPresent(accessibilityIdentifier, forKey: .accessibilityIdentifier)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user