PersonResource

final public class PersonResource: ResourceUpdating

A class representing a Person on the Giant Bomb wiki. Examples include Jeff Gerstmann and Hideo Kojima. These are typically real people as apposed to Character which represents fictional people or, in some cases, real people who appear as themselves in games.

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

  • The resource type.

    Declaration

    Swift

    public let resourceType = ResourceType.person
  • Array of aliases the person is known by.

    Declaration

    Swift

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

    Declaration

    Swift

    public fileprivate(set) var api_detail_url: URL?
  • Date the person was born.

    Declaration

    Swift

    public fileprivate(set) var birth_date: Date?
  • Country the person resides in.

    Declaration

    Swift

    public fileprivate(set) var country: String?
  • Date the person was added to Giant Bomb.

    Declaration

    Swift

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

    Declaration

    Swift

    public fileprivate(set) var date_last_updated: Date?
  • Date the person died.

    Declaration

    Swift

    public fileprivate(set) var death_date: Date?
  • Brief summary of the person.

    Declaration

    Swift

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

    Declaration

    Swift

    public fileprivate(set) var description: String?
  • Game the person was first credited.

    Declaration

    Swift

    public fileprivate(set) var first_credited_game: GameResource?
  • Gender of the person.

    Declaration

    Swift

    public fileprivate(set) var gender: Gender?
  • City or town the person resides in.

    Declaration

    Swift

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

    Unique ID of the person.

    Declaration

    Swift

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

    Declaration

    Swift

    public fileprivate(set) var image: ImageURLs?
  • Name of the person.

    Declaration

    Swift

    public fileprivate(set) var name: String?
  • URL pointing to the person on Giant Bomb.

    Declaration

    Swift

    public fileprivate(set) var site_detail_url: URL?
  • Extended info.

    Declaration

    Swift

    public var extendedInfo: PersonExtendedInfo?
  • Used to create a PersonResource from JSON.

    Declaration

    Swift

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

    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-24. Pass nil to return everything.

    completion

    A closure containing an optional RequestError if the request failed.