Class GameRomhacksRequest

    • Constructor Detail

      • GameRomhacksRequest

        public GameRomhacksRequest​(String id)
      • GameRomhacksRequest

        public GameRomhacksRequest​(Game game)
    • Method Detail

      • name

        public GameRomhacksRequest name​(String name)
        Sets the value to search across names and abbreviations. Uses a fuzzy search.
        Parameters:
        name - search query
        Returns:
        this object
      • abbreviation

        public GameRomhacksRequest abbreviation​(String abbreviation)
        Sets the abbreviation to filter for.
        Parameters:
        abbreviation - the game abbreviation to search for
        Returns:
        this object
      • releaseYear

        public GameRomhacksRequest releaseYear​(int year)
        Sets the release year to filter for.
        Parameters:
        year - release year
        Returns:
        this object
      • gameType

        public GameRomhacksRequest gameType​(String id)
        Sets the gametype to filter for.
        Parameters:
        id - the gametype ID
        Returns:
        this object
      • gameType

        public GameRomhacksRequest gameType​(Gametype gametype)
        Sets the gametype to filter for.
        Parameters:
        gametype - the gametype
        Returns:
        this object
      • platform

        public GameRomhacksRequest platform​(String id)
        Sets the platform to filter for.
        Parameters:
        id - the platform ID
        Returns:
        this object
      • platform

        public GameRomhacksRequest platform​(Platform platform)
        Sets the platform to filter for.
        Parameters:
        platform - the platform
        Returns:
        this object
      • region

        public GameRomhacksRequest region​(String id)
        Sets the region to filter for.
        Parameters:
        id - the region ID
        Returns:
        this object
      • region

        public GameRomhacksRequest region​(Region region)
        Sets the region to filter for.
        Parameters:
        region - the region
        Returns:
        this object
      • genre

        public GameRomhacksRequest genre​(String id)
        Sets the genre to filter for.
        Parameters:
        id - the genre id
        Returns:
        this object
      • genre

        public GameRomhacksRequest genre​(Genre genre)
        Sets the genre to filter for.
        Parameters:
        genre - the genre
        Returns:
        this object
      • engine

        public GameRomhacksRequest engine​(String id)
        Sets the engine to filter for.
        Parameters:
        id - the engine ID
        Returns:
        this object
      • engine

        public GameRomhacksRequest engine​(Engine engine)
        Sets the engine to filter for.
        Parameters:
        engine - the engine
        Returns:
        this object
      • developer

        public GameRomhacksRequest developer​(String id)
        Sets the developer to filter for.
        Parameters:
        id - the developer ID
        Returns:
        this object
      • developer

        public GameRomhacksRequest developer​(Developer developer)
        Sets the developer to filter for.
        Parameters:
        developer - the developer
        Returns:
        this object
      • publisher

        public GameRomhacksRequest publisher​(String id)
        Sets the publisher to filter for.
        Parameters:
        id - the publisher ID
        Returns:
        this object
      • publisher

        public GameRomhacksRequest publisher​(Publisher publisher)
        Sets the publisher to filter for.
        Parameters:
        publisher - the publisher
        Returns:
        this object
      • moderator

        public GameRomhacksRequest moderator​(String id)
        Sets the moderator to filter for.
        Parameters:
        id - the user ID
        Returns:
        this object
      • moderator

        public GameRomhacksRequest moderator​(User user)
        Sets the moderator to filter for.
        Parameters:
        user - the user
        Returns:
        this object
      • sortByNameSimilarity

        public GameRomhacksRequest sortByNameSimilarity()
        Sorts the returned games by name similarity.

        Only works when searching by name. Will always error if not searching by name.

        Returns:
        this object
      • sortDirection

        public GameRomhacksRequest sortDirection​(SortDirection direction)
        Sets the direction to sort the returned games.
        Parameters:
        direction - the direction to sort, either ascending or descending
        Returns:
        this object