StaffReviewResource

final public class StaffReviewResource: ResourceUpdating

A class representing a Staff Review on the Giant Bomb wiki. These are reviews specifically written by the editorial team at Giant Bomb.

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

  • The resource type.

    Declaration

    Swift

    public fileprivate(set) var resourceType = ResourceType.review
  • URL pointing to the review detail resource.

    Declaration

    Swift

    public fileprivate(set) var api_detail_url: URL?
  • Brief summary of the review.

    Declaration

    Swift

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

    Declaration

    Swift

    public fileprivate(set) var description: String?
  • Name of the Downloadable Content package.

    Declaration

    Swift

    public fileprivate(set) var dlc_name: String?
  • Game the review is for.

    Declaration

    Swift

    public fileprivate(set) var game: GameResource?
  • Date the review was published on Giant Bomb.

    Declaration

    Swift

    public fileprivate(set) var publish_date: Date?
  • Release of game for review.

    Declaration

    Swift

    public fileprivate(set) var release: GameResource?
  • Name of the review’s author.

    Declaration

    Swift

    public fileprivate(set) var reviewer: String?
  • The score given to the game on a scale of 1 to 5.

    Declaration

    Swift

    public fileprivate(set) var score: Int?
  • URL pointing to the review on Giant Bomb.

    Declaration

    Swift

    public fileprivate(set) var site_detail_url: URL?
  • id

    IDs don’t exist for staff reviews in the Giant Bomb database! But to satisfy the Resource protocol…

    Declaration

    Swift

    public fileprivate(set) var id: Int? = 0
  • Take the image from the game

    Declaration

    Swift

    public var image: ImageURLs?
  • Extended info. Unused for this resource type.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    completion

    A closure containing an optional RequestError if the request failed.