Inherits from SGItem : NSObject
Declared in SGEvent.h

Overview

The SGEvent model wraps individual item results from the /events and /recommendations endpoints. SGEvent extends from SGItem, which contains properties common to all item types.

Tasks

Relationships

Event properties

  •   title

    The event title.

    property
  •   shortTitle

    Either the same as title or a shortened event title if one is available.

    property
  •   type

    The event’s most specific taxonomy. eg concert, music_festival, mlb.

    property
  •   localDate

    The event’s date and time as at its location. For example an event advertised as starting at 6pm in NYC will have an 6pm localDate.

    property
  •   utcDate

    The event’s UTC date and time. For example an event advertised as starting at 6pm in NYC will have an 11pm utcDate (EST == UTC - 5).

    property
  •   announceDate

    The UTC date for when the event was announced.

    property
  •   visibleUntil

    The UTC date for when the event will expire.

    property
  •   createdAt

    The UTC date for when the event was added to the database.

    property
  •   generalAdmission

    Whether the event is allocated seating or general admission.

    property
  •   timeTbd

    Will be YES if an exact start time is not yet known.

    property
  •   dateTbd

    Will be YES if an exact date is not yet known.

    property
  •   taxonomies

    An array of taxonomies, from least specific to most specific.

    property
  •   links

    Links to the event on other services across the web.

    property

Properties

announceDate

@property (nonatomic, readonly, strong) NSDate *announceDate
Discussion

The UTC date for when the event was announced.

Declared In

SGEvent.h

createdAt

@property (nonatomic, readonly, strong) NSDate *createdAt
Discussion

The UTC date for when the event was added to the database.

Declared In

SGEvent.h

dateTbd

@property (nonatomic, readonly, assign) BOOL dateTbd
Discussion

Will be YES if an exact date is not yet known.

Declared In

SGEvent.h

generalAdmission

@property (nonatomic, readonly, assign) BOOL generalAdmission
Discussion

Whether the event is allocated seating or general admission.

Declared In

SGEvent.h

links

@property (nonatomic, readonly, strong) NSArray *links
Discussion

Links to the event on other services across the web.

Declared In

SGEvent.h

localDate

@property (nonatomic, readonly, strong) NSDate *localDate
Discussion

The event’s date and time as at its location. For example an event advertised as starting at 6pm in NYC will have an 6pm localDate.

Declared In

SGEvent.h

performers

@property (nonatomic, strong) NSArray *performers
Discussion

An array of SGPerformer instances for performers performing at the event.

Declared In

SGEvent.h

primaryPerformer

@property (nonatomic, strong) SGPerformer *primaryPerformer
Discussion

An SGPerformer for the event’s primary performer.

Declared In

SGEvent.h

shortTitle

@property (nonatomic, readonly, copy) NSString *shortTitle
Discussion

Either the same as title or a shortened event title if one is available.

title      = "Milwaukee Brewers at New York Mets"
shortTitle = "Brewers at Mets"

Declared In

SGEvent.h

taxonomies

@property (nonatomic, readonly, strong) NSArray *taxonomies
Discussion

An array of taxonomies, from least specific to most specific.

Declared In

SGEvent.h

timeTbd

@property (nonatomic, readonly, assign) BOOL timeTbd
Discussion

Will be YES if an exact start time is not yet known.

Declared In

SGEvent.h

title

@property (nonatomic, readonly, copy) NSString *title
Discussion

The event title.

Declared In

SGEvent.h

type

@property (nonatomic, readonly, copy) NSString *type
Discussion

The event’s most specific taxonomy. eg concert, music_festival, mlb.

Declared In

SGEvent.h

utcDate

@property (nonatomic, readonly, strong) NSDate *utcDate
Discussion

The event’s UTC date and time. For example an event advertised as starting at 6pm in NYC will have an 11pm utcDate (EST == UTC - 5).

Declared In

SGEvent.h

venue

@property (nonatomic, strong) SGVenue *venue
Discussion

An SGVenue instance for the event’s venue.

Declared In

SGEvent.h

visibleUntil

@property (nonatomic, readonly, strong) NSDate *visibleUntil
Discussion

The UTC date for when the event will expire.

Declared In

SGEvent.h