BoardgameData
public struct BoardgameData : ContentUsed to obtain a list of board games.
Each year there’s a list of boardgames published that’ll be brought onboard for the games library. The board game data is produced
by running a script that pulls game data from http://boardgamegeek.com‘s API and merging it with the games library table.
Games in the library may not match anything in BGG’s database (or we can’t find a match), so all the BGG fields are optional.
Returned by:
- GET /api/v3/boardgames(inside- BoardgameResponseData)
- GET /api/v3/boardgames/:boardgameID
- GET /api/v3/boardgames/expansions/:boardgameID
See BoardgameController.getBoardgames(_:), BoardgameController.getExpansions(_:).
- 
                  
                  DeclarationSwift var gameID: UUID
- 
                  
                  Name from the JoCo boardgame list DeclarationSwift var gameName: String
- 
                  
                  How many copies are being brought aboard. DeclarationSwift var numCopies: Int
- 
                  
                  Some games each year are loaned to the library by specific people. DeclarationSwift var donatedBy: String?
- 
                  
                  Any notes on the game (specific printing, wear and tear) DeclarationSwift var notes: String?
- 
                  
                  From BoardGameGeek’s API. DeclarationSwift var yearPublished: String?
- 
                  
                  From BGG’s API. Usually several paragraphs. DeclarationSwift var gameDescription: String?
- 
                  
                  From BGG’s API. DeclarationSwift var minPlayers: Int?
- 
                  
                  From BGG’s API. DeclarationSwift var maxPlayers: Int?
- 
                  
                  From BGG’s API. This is the value from the “numPlayers” poll that got the highest number of “Best” votes. DeclarationSwift var suggestedPlayers: Int?
- 
                  
                  From BGG’s API. Playtime in minutes. DeclarationSwift var minPlayingTime: Int?
- 
                  
                  From BGG’s API. Playtime in minutes. DeclarationSwift var maxPlayingTime: Int?
- 
                  
                  From BGG’s API. Playtime in minutes. DeclarationSwift var avgPlayingTime: Int?
- 
                  
                  From BGG’s API. Suggested min player age in years. Min age could be determined by complexity or content. DeclarationSwift var minAge: Int?
- 
                  
                  From BGG’s API. How many BGG reviewers submitted ratings. DeclarationSwift var numRatings: Int?
- 
                  
                  From BGG’s API. Average game rating. Members can rate games with scores in the range 1…10 DeclarationSwift var avgRating: Float?
- 
                  
                  From BGG’s API. Members can score a games’ complexity on a scale of 1…5, where 1 is Light and 5 is Heavy. DeclarationSwift var complexity: Float?
- 
                  
                  TRUE if this entry is an expansion for another game. Weirdly, the games library may not actually have the base game. At any rate, the base game is usually a requirement to play an expansion, and both must be checked out together. DeclarationSwift var isExpansion: Bool
- 
                  
                  TRUE if this game has expansions that can be played with it. DeclarationSwift var hasExpansions: Bool
- 
                  
                  TRUE if the user has favorited the game. FALSE if no one is logged in. DeclarationSwift var isFavorite: Bool
- 
                  
                  DeclarationSwift init(game: Boardgame, isFavorite: Bool = false) throws
 View on GitHub
            View on GitHub
           BoardgameData Structure Reference
      BoardgameData Structure Reference