PersonalEvent
final class PersonalEvent : Model, Searchable
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
@ID var id: UUID?
-
The title of the event.
Declaration
Swift
@Field var title: String
-
A description of the event.
Declaration
Swift
@Field var description: String?
-
The start time of the event.
Declaration
Swift
@Field var startTime: Date
-
The end time of the event.
Declaration
Swift
@Field var endTime: Date
-
The location of the event.
Declaration
Swift
@Field var location: String?
-
An ordered list of participants in the event. Newly joined members are
Declaration
Swift
@Field var participantArray: [UUID]
-
Moderators can set several statuses on fezPosts that modify editability and visibility.
Declaration
Swift
@Enum var moderationStatus: ContentModerationStatus
-
Timestamp of the model’s creation, set automatically.
Declaration
Swift
@Timestamp var createdAt: Date?
-
Timestamp of the model’s last update, set automatically.
Declaration
Swift
@Timestamp var updatedAt: Date?
-
Timestamp of the model’s soft-deletion, set automatically.
Declaration
Swift
@Timestamp var deletedAt: Date?
-
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 }