ComingUpScheduleItem

public struct ComingUpScheduleItem

A struct representing an upcoming post on Giant Bomb. These are basically the individual items on the Coming up on Giant Bomb panel on the Giant Bomb homepage.

  • The resource type.

    Declaration

    Swift

    public let resourceType = ResourceType.comingUpItem
  • An ComingUpItemType describing this item. Note, this will be ComingUpItemType.Unknown for currently live streams found in ComingUpSchedule’s liveNow property.

    Declaration

    Swift

    public let type: ComingUpItemType
  • The title of the item.

    Declaration

    Swift

    public let title: String?
  • URL pointing to the image of the item.

    Declaration

    Swift

    public let imageURL: URL?
  • The date this item will go live on Giant Bomb. SwiftBomb will convert the PDT time Giant Bomb returns to an NSDate in the UTC timezone. Set your NSDateFormatter’s timeZone property to NSTimeZone.localTimeZone() to adjust it correctly to your user’s device. This will not be available for currently live streams found in ComingUpSchedule’s liveNow property.

    Declaration

    Swift

    public let date: Date?
  • Boolean indicating whether or not this a premium item or not. This will not be available for currently live streams found in ComingUpSchedule’s liveNow property.

    Declaration

    Swift

    public let premium: Bool
  • Used to create an UpcomingItemResource from JSON.

    Declaration

    Swift

    public init(json: [String: AnyObject])