Announcement

public struct Announcement : Codable, Hashable, Identifiable

Represents an announcement set by an administrator.

  • Undocumented

    Declaration

    Swift

    public init(id: String,
                content: String,
                publishedAt: Date? = nil,
                published: Bool? = nil,
                allDay: Bool,
                createdAt: Date? = nil,
                updatedAt: Date? = nil,
                read: Bool,
                reactions: [AnnouncementReaction],
                startsAt: Date? = nil,
                endsAt: Date? = nil)
  • id

    The announcement id.

    Declaration

    Swift

    public let id: String
  • The content of the announcement.

    Declaration

    Swift

    public let content: String
  • The date the post was published

    Declaration

    Swift

    public let publishedAt: Date?
  • Whether the announcement is currently active.

    Declaration

    Swift

    public let published: Bool?
  • Whether the announcement is currently active.

    Declaration

    Swift

    public let allDay: Bool
  • Whether the announcement has a start/end time.

    Declaration

    Swift

    public let createdAt: Date?
  • When the announcement was last updated.

    Declaration

    Swift

    public let updatedAt: Date?
  • Whether the announcement has been read by the user.

    Declaration

    Swift

    public let read: Bool
  • Emoji reactions attached to the announcement.

    Declaration

    Swift

    public let reactions: [AnnouncementReaction]
  • When the future announcement will start.

    Declaration

    Swift

    public let startsAt: Date?
  • When the future announcement will end.

    Declaration

    Swift

    public let endsAt: Date?