Annotation
open class Annotation : CoatyObject
Represents an annotation
-
Undocumented
Declaration
Swift
override open class var objectType: String { get }
-
Specific type of this annotation object
Declaration
Swift
public var type: AnnotationType
-
UUID of User who created the annotation
Declaration
Swift
public var creatorId: CoatyUUID
-
Timestamp when annotation was issued/created. Value represents the number of milliseconds since the epoc in UTC. (see Date.getTime(), Date.now())
Declaration
Swift
public var creationTimestamp: Double
-
Status of storage
Declaration
Swift
public var status: AnnotationStatus
-
Array of annotation media variants (optional). A variant is an object with a description key and a download url
Declaration
Swift
public var variants: [AnnotationVariant]?
-
Default initializer for a n
Annotation
object.Declaration
Swift
public init(type: AnnotationType, creatorId: CoatyUUID, creationTimestamp: Double, status: AnnotationStatus, name: String = "AnnotationObject", objectType: String = Annotation.objectType, objectId: CoatyUUID = .init(), variants: [AnnotationVariant]? = nil)
-
Undocumented
Declaration
Swift
public required init(from decoder: Decoder) throws
-
Undocumented
Declaration
Swift
open override func encode(to encoder: Encoder) throws