Game

public struct Game

Represents a game object on SCM, typically received from the game endpoint

  • id

    The game ID

    Declaration

    Swift

    public let id: String
  • Game title

    Declaration

    Swift

    public let title: String
  • Game song count

    Declaration

    Swift

    public let songCount: UInt
  • Array of Song in the game

    Declaration

    Swift

    public var songs: [Song]
  • Initialize a new game object

    Throws

    SCMError

    Declaration

    Swift

    public init(_ id: String) throws

    Parameters

    id

    The ID of the game on SCM