EventFeedback
final class EventFeedback : Model, @unchecked Sendable
A feedback report from a Shadow Event Host.
THO asks those who host shadow events to fill out a feedback form after their event to tell THO how their event went. This is the db model that stores that data.
See
See Also: EventFeedbackData the POST data containg the web form contentsSee
See Also: EventFeedbackReport feedback data returned by several API calls-
Declaration
Swift
static let schema: String
-
The ID for this feedback response.
Declaration
Swift
@EventFeedback .ID var id: UUID? { get set }
-
Name of the person who authored the feedback
Declaration
Swift
@EventFeedback .Field var responderName: String { get set }
-
Title of the event that the feedback is referring to. Often sourced from the linked Event itself.
Declaration
Swift
@EventFeedback .Field var eventName: String { get set }
-
Location of the event that the feedback is referring to.
Declaration
Swift
@EventFeedback .Field var eventLocation: String { get set }
-
Start time of the event that the feedback is referring to.
Declaration
Swift
@EventFeedback .Field var eventStartTime: Date { get set }
-
The respondent’s estimate of the event attendance. Could be a range, or “about 60, idk” so field is a string.
Declaration
Swift
@EventFeedback .Field var attendance: String { get set }
-
User’s answer to the “How did it go?” feedback question.
Declaration
Swift
@EventFeedback .Field var recapField: String { get set }
-
User’s answer to the “Any issues?” feedback question.
Declaration
Swift
@EventFeedback .Field var issuesField: String { get set }
-
For those able to view feedback reports. TRUE marks this report as containing something that needs to be dealt with. The flag is global; not per-user like ‘favorite’ flags. Not intended to be a full task-management system.
Declaration
Swift
@EventFeedback .Field var actionable: Bool { get set }
-
Timestamp of the model’s creation, set automatically.
Declaration
Swift
@EventFeedback .Timestamp var createdAt: Date? { get set }
-
Timestamp of the model’s last update, except for changes to the ‘actionable’ field. NOT set automatically.
Declaration
Swift
@EventFeedback .Timestamp var updatedAt: Date? { get set }
-
Declaration
Swift
init()
-
Declaration
Swift
init(event: Event, author: UserCacheData, feedback: EventFeedbackData) throws
-
Declaration
Swift
func update(event: Event, author: UserCacheData, feedback: EventFeedbackData) throws