EventFeedbackSelectionData
public struct EventFeedbackSelectionData : Content, Sendable
Returned by /GET /api/v3/feedback/eventlist
Returns several arrays of EventData, designed to make it as easy as possible for the user to locate the event they hosted and want to give feedback. Currently we return a full events list of all eligible events and 3 optional filtered lists, each showing a subset of the full list that is likely to contain the event the user wants to give feedback on.
In each EventData array, events are sorted by descending start time and filtered to
- only show shadow
and workshop
events
- only show events that started in the past.
The same event can be found in multiple arrays.
If this structure gets any more complicated we may change the API to return a single list sorted via a points strategy.
-
Events the user has already given feedback on, and could update their answers.
Declaration
Swift
var existingFeedback: [EventData]
-
If the user has an attached Performer record, events for that performer
Declaration
Swift
var performerAttached: [EventData]
-
If the request indicated a Room filter, events that occurred in that room
Declaration
Swift
var matchingRoom: [EventData]
-
All events eligible for feedback
Declaration
Swift
var events: [EventData]
-
Declaration
Swift
init()