Snapshot
open class Snapshot : CoatyObject
Represents a snapshot in time of the state of any Coaty object.
-
Undocumented
Declaration
Swift
override open class var objectType: String { get } -
Coaty compatible timestamp when snapshot was issued/created. (see
CoatyTimestamp.nowMillis()orCoatyTimestamp.dateMillis())Declaration
Swift
public var creationTimestamp: Double -
UUID of creator of this snapshot.
Declaration
Swift
public var creatorId: CoatyUUID -
The Coaty object captured by this snapshot.
Declaration
Swift
public var object: CoatyObject -
Tags associated with this snapshot (optional). They can be used on retrieval to identify different purposes of the snapshot.
Declaration
Swift
public var tags: [String]? -
Default initializer for a
Snapshotobject.Declaration
Swift
public init(creationTimestamp: Double, creatorId: CoatyUUID, tags: [String]? = nil, object: CoatyObject, name: String = "SnapshotObject", objectType: String = Snapshot.objectType, objectId: CoatyUUID = .init())
-
Undocumented
Declaration
Swift
public required init(from decoder: Decoder) throws -
Undocumented
Declaration
Swift
open override func encode(to encoder: Encoder) throws
View on GitHub
Snapshot Class Reference