PlatformResource

final public class PlatformResource: ResourceUpdating

A class representing a Platform on the Giant Bomb wiki. Examples include Playstation 4 and Xbox One.

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

  • The resource type.

    Declaration

    Swift

    public let resourceType = ResourceType.platform
  • Abbreviation of the platform.

    Declaration

    Swift

    public fileprivate(set) var abbreviation: String?
  • Array of aliases the platform is known by.

    Declaration

    Swift

    public fileprivate(set) var aliases: [String]?
  • URL pointing to the platform detail resource.

    Declaration

    Swift

    public fileprivate(set) var api_detail_url: URL?
  • Company that created the platform.

    Declaration

    Swift

    public fileprivate(set) var company: CompanyResource?
  • Date the platform was added to Giant Bomb.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public fileprivate(set) var description: String?
  • id

    Unique ID of the platform.

    Declaration

    Swift

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

    Declaration

    Swift

    public fileprivate(set) var image: ImageURLs?
  • Approximate number of sold hardware units.

    Declaration

    Swift

    public fileprivate(set) var install_base: String?
  • Name of the platform.

    Declaration

    Swift

    public fileprivate(set) var name: String?
  • Flag indicating whether the platform has online capabilities.

    Declaration

    Swift

    public fileprivate(set) var online_support: Bool?
  • Initial price point of the platform.

    Declaration

    Swift

    public fileprivate(set) var original_price: String?
  • Date of the platform.

    Declaration

    Swift

    public fileprivate(set) var release_date: Date?
  • URL pointing to the platform on Giant Bomb.

    Declaration

    Swift

    public fileprivate(set) var site_detail_url: URL?
  • Extended info. Unused for this resource type.

    Declaration

    Swift

    public var extendedInfo: UnusedExtendedInfo?
  • Used to create a PlatformResource from JSON.

    Declaration

    Swift

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

    Declaration

    Swift

    public var prettyDescription: String
  • Fetches extended info for this person. 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-26. Pass nil to return everything.

    completion

    A closure containing an optional RequestError if the request failed.