PerformerData

public struct PerformerData : Content

Returns info about a single perfomer. Most fields are optional, and the array fields may be empty, although they shouldn’t be under normal conditions.

Returned by: GET /api/v3/performer/self Returned by: GET /api/v3/performer/:performer_id

  • ID, name, photo – used to create a title card

    Declaration

    Swift

    var header: PerformerHeaderData
  • For Shadow Event Organizers, the Performer links to their User, but don’t use the user’s pronoun field when referring to them as a Performer.

    Declaration

    Swift

    var pronouns: String?
  • bio

    Bio may contain Markdown.

    Declaration

    Swift

    var bio: String?
  • Bandname, NGO, university, Podcast name, etc. Should only be filled if the org is relevant to the performer’s event.

    Declaration

    Swift

    var organization: String?
  • Should only be non-nil if it’s a title that’s relevant to the performer’s event. Hopefully won’t contain ‘Mr./Mrs.“

    Declaration

    Swift

    var title: String?
  • Should be a fully-qualified URL.

    Declaration

    Swift

    var website: String?
  • Should be a fully-qualified URL.

    Declaration

    Swift

    var facebookURL: String?
  • Should be a fully-qualified URL.

    Declaration

    Swift

    var xURL: String?
  • Should be a fully-qualified URL.

    Declaration

    Swift

    var instagramURL: String?
  • Should be a fully-qualified URL.

    Declaration

    Swift

    var youtubeURL: String?
  • Full 4-digit years, ascending order– like this: [2011, 2012, 2022]

    Declaration

    Swift

    var yearsAttended: [Int]
  • The events this performer is going to be performing at.

    Declaration

    Swift

    var events: [EventData]
  • The user who created this Performer. Only applies to Shadow Event organizers, and is only returned if the requester is a Moderator or higher. Although we track the User who created a Performer model for their shadow event for moderation purposes, the User behind the Performer shouldn’t be shown to everyone.

    Declaration

    Swift

    var user: UserHeader?
  • Declaration

    Swift

    init(_ performer: Performer, favoriteEventIDs: Set<UUID>) throws
  • Declaration

    Swift

    init()