Class Game


  • public class Game
    extends IdentifiableResource
    A game which has a leaderboard on SRC.

    This class is immutable and thread-safe.
    • Method Detail

      • getRuns

        public RunsRequest getRuns()
        Gets a new RunsRequest builder object to request all runs for this game.
        Returns:
        a RunsRequest builder
      • getRomhacks

        public GameRomhacksRequest getRomhacks()
        Gets a new GameRomhacksRequest builder object to request romhacks (derived games) for this game.
        Returns:
        a GameRomhacksRequest builder
      • getNames

        public Names getNames()
        Gets a Names object with the names for this game.
        Returns:
        a Names of this game's names
      • getBoostsReceived

        public int getBoostsReceived()
        Gets the current boosts for this game on SRC.
        Returns:
        current boosts used on this game
        See Also:
        SRC Supporter FAQ
      • getDistinctBoosters

        public int getDistinctBoosters()
        Gets the number of unique supporters currently boosting this game.
        Returns:
        total unique users that have boosted this game
        See Also:
        SRC Supporter FAQ
      • getAbbreviation

        public String getAbbreviation()
        Gets the unique shortened name that is used by SRC.
        Returns:
        the shortened game title
      • getWebLink

        public String getWebLink()
        Gets a link to this game on SRC.
        Returns:
        a link to this game on SRC
      • getDiscordLink

        public Optional<String> getDiscordLink()
        Gets a Discord invite link to the official Discord server for this game, if it exists.
        Returns:
        an Optional with an invitation link to this game's Discord server
      • getReleaseDate

        public LocalDate getReleaseDate()
        Gets the date when this game was released.
        Returns:
        a LocalDate describing when this game was released
      • getCreationTime

        public Optional<Instant> getCreationTime()
        Returns an Instant with the time this game was added to SRC.

        Games added before this field was implemented will return an empty Optional.

        Returns:
        an Optional with an Instant describing when this game was added to SRC
      • getAssets

        public GameAssets getAssets()
        Gets the GameAssets for this game.
        Returns:
        a GameAssets object