GameReleaseResource

final public class GameReleaseResource: ResourceUpdating

A class representing a Game Release on the Giant Bomb wiki. Examples include Grand Theft Auto: UK Release and Spelunky: Vita Edition. The distinction between a GameResource and GameReleaseResource can be summarised that a game consists of releases and they typically refer to releases in different countries, collector’s editions etc.

To retrieve extended info for a game release, call fetchExtendedInfo(_:) upon it.

  • The resource type.

    Declaration

    Swift

    public let resourceType = ResourceType.release
  • URL pointing to the release detail resource.

    Declaration

    Swift

    public fileprivate(set) var api_detail_url: URL?
  • Date the release was added to Giant Bomb.

    Declaration

    Swift

    public fileprivate(set) var date_added: Date?
  • Date the release was last updated on Giant Bomb.

    Declaration

    Swift

    public fileprivate(set) var date_last_updated: Date?
  • Brief summary of the release.

    Declaration

    Swift

    public fileprivate(set) var deck: String?
  • Description of the release.

    Declaration

    Swift

    public fileprivate(set) var description: String?
  • Expected date the game will be released.

    Declaration

    Swift

    public fileprivate(set) var expected_release_date: Date?
  • Game the release is for.

    Declaration

    Swift

    public fileprivate(set) var game: GameResource?
  • Rating of the release.

    Declaration

    Swift

    public fileprivate(set) var game_rating: (id: Int, name: String)?
  • id

    Unique ID of the release.

    Declaration

    Swift

    public let id: Int?
  • Main image of the release.

    Declaration

    Swift

    public fileprivate(set) var image: ImageURLs?
  • Maximum players.

    Declaration

    Swift

    public fileprivate(set) var maximum_players: Int?
  • Minimum players.

    Declaration

    Swift

    public fileprivate(set) var minimum_players: Int?
  • Name of the release.

    Declaration

    Swift

    public fileprivate(set) var name: String?
  • The release’s platform.

    Declaration

    Swift

    public fileprivate(set) var platform: PlatformResource?
  • The release’s product code.

    Declaration

    Swift

    public fileprivate(set) var product_code_value: String?
  • Region the release is responsible for.

    Declaration

    Swift

    public fileprivate(set) var region: (id: Int, name: String)?
  • Date of the release.

    Declaration

    Swift

    public fileprivate(set) var release_date: Date?
  • Resolutions available.

    Declaration

    Swift

    public fileprivate(set) var resolutions: [(id: Int, name: String)]?
  • Sound systems.

    Declaration

    Swift

    public fileprivate(set) var sound_systems: [(id: Int, name: String)]?
  • URL pointing to the release on Giant Bomb.

    Declaration

    Swift

    public fileprivate(set) var site_detail_url: URL?
  • Widescreen support.

    Declaration

    Swift

    public fileprivate(set) var widescreen_support: Bool?
  • Extended info.

    Declaration

    Swift

    public var extendedInfo: GameReleaseExtendedInfo?
  • Used to create a GameReleaseResource from JSON.

    Declaration

    Swift

    public init(json: [String : AnyObject])
  • Pretty description of the release.

    Declaration

    Swift

    public var prettyDescription: String
  • Fetches extended info for this release. Also re-populates base data in the case where this object is a stub from another parent resource.

    Declaration

    Swift

    public func fetchExtendedInfo(_ fields: [String]? = nil, completion: @escaping (_ error: RequestError?) -> Void)

    Parameters

    fields

    An optional array of fields to return in the response. See the available options at http://www.giantbomb.com/api/documentation#toc-0-34. Pass nil to return everything.

    completion

    A closure containing an optional RequestError if the request failed.