Annotation

open class Annotation : CoatyObject

Represents an annotation

Class registration.

  • Undocumented

    Declaration

    Swift

    override open class var objectType: String { get }

Attributes.

  • 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]?

Initializers.

Codable methods.

  • Undocumented

    Declaration

    Swift

    public required init(from decoder: Decoder) throws
  • Undocumented

    Declaration

    Swift

    open override func encode(to encoder: Encoder) throws