Small cleaning
This commit is contained in:
parent
54e012d699
commit
24f44e5829
@ -28,16 +28,4 @@ public extension ListItemModelProtocol {
|
||||
get { return nil }
|
||||
set { }
|
||||
}
|
||||
|
||||
var moleculeName: String? {
|
||||
get { return Self.identifier }
|
||||
}
|
||||
|
||||
var categoryName: String {
|
||||
return "\(ListItemModelProtocol.self)"
|
||||
}
|
||||
|
||||
// var categoryCodingKey: String {
|
||||
// return "style"
|
||||
// }
|
||||
}
|
||||
|
||||
@ -4,9 +4,6 @@ import Foundation
|
||||
public protocol MoleculeModelProtocol: Model {
|
||||
var moleculeName: String? { get }
|
||||
var backgroundColor: Color? { get set}
|
||||
|
||||
static var categoryName: String { get }
|
||||
static var categoryCodingKey: String { get }
|
||||
}
|
||||
|
||||
public extension MoleculeModelProtocol {
|
||||
|
||||
@ -9,25 +9,8 @@
|
||||
import Foundation
|
||||
|
||||
|
||||
public protocol PageModelProtocol: Model {
|
||||
public protocol PageModelProtocol {
|
||||
var pageType: String { get set }
|
||||
var screenHeading: String? { get set }
|
||||
var isAtomicTabs: Bool? { get set }
|
||||
|
||||
static var categoryName: String { get }
|
||||
static var categoryCodingKey: String { get }
|
||||
}
|
||||
|
||||
extension PageModelProtocol {
|
||||
//TODO: Scott implement
|
||||
|
||||
public static var categoryCodingKey: String {
|
||||
return "moleculeName"
|
||||
}
|
||||
|
||||
public static var categoryName: String {
|
||||
return "\(PageModelProtocol.self)"
|
||||
}
|
||||
// public static var categoryName: String { return "template" }
|
||||
// public static var categoryCodingKey: String { return "\(PageModelProtocol.self)" }
|
||||
}
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
import Foundation
|
||||
|
||||
|
||||
public protocol TemplateModelProtocol: PageModelProtocol {
|
||||
public protocol TemplateModelProtocol: PageModelProtocol, Model {
|
||||
var template: String { get }
|
||||
}
|
||||
|
||||
@ -18,4 +18,12 @@ public extension TemplateModelProtocol {
|
||||
var template: String {
|
||||
get { return Self.identifier }
|
||||
}
|
||||
|
||||
static var categoryCodingKey: String {
|
||||
return "template"
|
||||
}
|
||||
|
||||
static var categoryName: String {
|
||||
return "\(TemplateModelProtocol.self)"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user