PersonalEvent
final class PersonalEvent : Model, Searchable, @unchecked Sendable
extension PersonalEvent: Reportable
A PersonalEvent
that a user has added to their calendar, and optionally invited
select users to also have in their calendars.
-
Declaration
Swift
static let schema: String
-
The event’s ID.
Declaration
Swift
@PersonalEvent .ID var id: UUID? { get set }
-
The title of the event.
Declaration
Swift
@PersonalEvent .Field var title: String { get set }
-
A description of the event.
Declaration
Swift
@PersonalEvent .Field var description: String? { get set }
-
The start time of the event.
Declaration
Swift
@PersonalEvent .Field var startTime: Date { get set }
-
The end time of the event.
Declaration
Swift
@PersonalEvent .Field var endTime: Date { get set }
-
The location of the event.
Declaration
Swift
@PersonalEvent .Field var location: String? { get set }
-
An ordered list of participants in the event. Newly joined members are
Declaration
Swift
@PersonalEvent .Field var participantArray: [UUID] { get set }
-
Moderators can set several statuses on fezPosts that modify editability and visibility.
Declaration
Swift
@PersonalEvent .Enum var moderationStatus: ContentModerationStatus { get set }
-
Timestamp of the model’s creation, set automatically.
Declaration
Swift
@PersonalEvent .Timestamp var createdAt: Date? { get set }
-
Timestamp of the model’s last update, set automatically.
Declaration
Swift
@PersonalEvent .Timestamp var updatedAt: Date? { get set }
-
Timestamp of the model’s soft-deletion, set automatically.
Declaration
Swift
@PersonalEvent .Timestamp var deletedAt: Date? { get set }
-
Declaration
Swift
init()
-
Initializes a new
PersonalEvent
.Declaration
Swift
init( title: String, description: String?, startTime: Date, endTime: Date, location: String?, owner: UUID )
Parameters
title
The title of the event.
description
A description of the event.
startTime
The start time of the event.
endTime
The end time of the event.
location
The location of the event.
owner
The ID of the owning user.
-
Declaration
Swift
init(_ data: PersonalEventContentData, cacheOwner: UserCacheData)
-
The report type for
PersonalEvent
reports.Declaration
Swift
var reportType: ReportType { get }
-
Standardizes how to get the author ID of a Reportable object.
Declaration
Swift
var authorUUID: UUID { get }
-
No auto quarantine for PersonalEvents.
Declaration
Swift
var autoQuarantineThreshold: Int { get }