PerformerUploadData
struct PerformerUploadData : Content, Sendable
Used to create and update Performer models.
Used by: POST /api/v3/performer/forEvent/:event_id
Used by: POST /api/v3/performer/official/add
-
If this is an existing performer that is being updated. Not required for shadow event organizers; we can find them by userID.
Declaration
Swift
let performerID: UUID? -
The name of the performer. Required.
Declaration
Swift
let name: String -
Declaration
Swift
let pronouns: String? -
Bio can contain Markdown.
Declaration
Swift
let bio: String? -
New photo data if we’re updating it, or the name of an existing photo on the server.
Declaration
Swift
let photo: ImageUploadData -
TRUE if this is an official performer, FALSE if it’s a shadow event organizer. Note that this struct can’t link a Performer with a User, so can’t be used by admin/mods to create Shadow Event Organizers. The idea is that they should create their records themselves, but mods may have to edit them.
Declaration
Swift
let isOfficialPerformer: Bool -
Declaration
Swift
let organization: String? -
Declaration
Swift
let title: String? -
Declaration
Swift
let yearsAttended: [Int] -
Social media URLs. Should be actual URLs we put into an HREF.
Declaration
Swift
let website: String? -
Social media URLs. Should be actual URLs we put into an HREF.
Declaration
Swift
let facebookURL: String? -
Social media URLs. Should be actual URLs we put into an HREF.
Declaration
Swift
let xURL: String? -
Social media URLs. Should be actual URLs we put into an HREF.
Declaration
Swift
let instagramURL: String? -
Social media URLs. Should be actual URLs we put into an HREF.
Declaration
Swift
let youtubeURL: String? -
UIDs of events where this performer is scheduled to appear.
Declaration
Swift
let eventUIDs: [String] -
Used to add Performer data to a UserSaveRestoreData for user archiving
Declaration
Swift
init(_ performer: Performer) throws -
Declaration
Swift
fileprivate init(form: AddPerformerFormContent, photo: ImageUploadData, overrideIsOfficial: Bool? = nil)
View on GitHub