PerformerUploadData
public struct PerformerUploadData : Content
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
var performerID: UUID?
-
The name of the performer. Required.
Declaration
Swift
var name: String
-
Declaration
Swift
var pronouns: String?
-
Bio can contain Markdown.
Declaration
Swift
var bio: String?
-
New photo data if we’re updating it, or the name of an existing photo on the server.
Declaration
Swift
var 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
var isOfficialPerformer: Bool
-
Declaration
Swift
var organization: String?
-
Declaration
Swift
var title: String?
-
Declaration
Swift
var yearsAttended: [Int]
-
Social media URLs. Should be actual URLs we put into an HREF.
Declaration
Swift
var website: String?
-
Social media URLs. Should be actual URLs we put into an HREF.
Declaration
Swift
var facebookURL: String?
-
Social media URLs. Should be actual URLs we put into an HREF.
Declaration
Swift
var xURL: String?
-
Social media URLs. Should be actual URLs we put into an HREF.
Declaration
Swift
var instagramURL: String?
-
Social media URLs. Should be actual URLs we put into an HREF.
Declaration
Swift
var youtubeURL: String?
-
UIDs of events where this performer is scheduled to appear.
Declaration
Swift
var 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)