|
|
|
@ -17,6 +17,7 @@ class Car: ModelObject, Storable { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
static func relationships() -> [LeStorage.Relationship] { return [] } |
|
|
|
static func relationships() -> [LeStorage.Relationship] { return [] } |
|
|
|
|
|
|
|
static func storeParent() -> Bool { return false } |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -24,7 +25,7 @@ class Boat: ModelObject, SyncedStorable { |
|
|
|
|
|
|
|
|
|
|
|
var id: String = Store.randomId() |
|
|
|
var id: String = Store.randomId() |
|
|
|
var lastUpdate: Date = Date() |
|
|
|
var lastUpdate: Date = Date() |
|
|
|
var shared: Bool? = false |
|
|
|
var sharing: LeStorage.SharingStatus? |
|
|
|
|
|
|
|
|
|
|
|
override required init() { |
|
|
|
override required init() { |
|
|
|
super.init() |
|
|
|
super.init() |
|
|
|
@ -33,6 +34,7 @@ class Boat: ModelObject, SyncedStorable { |
|
|
|
static func tokenExemptedMethods() -> [LeStorage.HTTPMethod] { return [] } |
|
|
|
static func tokenExemptedMethods() -> [LeStorage.HTTPMethod] { return [] } |
|
|
|
static func resourceName() -> String { return "boat" } |
|
|
|
static func resourceName() -> String { return "boat" } |
|
|
|
static var copyServerResponse: Bool = false |
|
|
|
static var copyServerResponse: Bool = false |
|
|
|
|
|
|
|
static func storeParent() -> Bool { return false } |
|
|
|
|
|
|
|
|
|
|
|
var storeId: String? { return nil } |
|
|
|
var storeId: String? { return nil } |
|
|
|
func copy(from other: any LeStorage.Storable) { |
|
|
|
func copy(from other: any LeStorage.Storable) { |
|
|
|
|