You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
904 B
37 lines
904 B
//
|
|
// DataLog.swift
|
|
// LeStorage
|
|
//
|
|
// Created by Laurent Morvillier on 11/10/2024.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
class DataLog: ModelObject, Storable {
|
|
|
|
static func resourceName() -> String { return "modelLogs" }
|
|
static func tokenExemptedMethods() -> [HTTPMethod] { return [] }
|
|
static func filterByStoreIdentifier() -> Bool { return false }
|
|
|
|
var id: String = Store.randomId()
|
|
|
|
/// The id of the underlying data
|
|
var dataId: String
|
|
|
|
/// The name of class of the underlying data
|
|
var modelName: String
|
|
|
|
/// The operation performed on the underlying data
|
|
var operation: HTTPMethod
|
|
|
|
init(dataId: String, modelName: String, operation: HTTPMethod) {
|
|
self.dataId = dataId
|
|
self.modelName = modelName
|
|
self.operation = operation
|
|
}
|
|
|
|
func copy(from other: any Storable) {
|
|
fatalError("should not happen")
|
|
}
|
|
|
|
}
|
|
|