Klasse Game

java.lang.Object
xyz.titanecho.topgamesapi.model.Game

public class Game extends Object
Represents a game object from the Top-Games API. This class models the data structure of a game as returned by the API.
  • Konstruktordetails

    • Game

      public Game()
  • Methodendetails

    • getId

      public String getId()
      Gibt zurück:
      The unique identifier of the game.
    • setId

      public void setId(String id)
    • getName

      public String getName()
      Gibt zurück:
      The name of the game.
    • setName

      public void setName(String name)
    • getRank

      public int getRank()
      Gibt zurück:
      The ranking of the game.
    • setRank

      public void setRank(int rank)
    • getPublisher

      public String getPublisher()
      Gibt zurück:
      The publisher of the game.
    • setPublisher

      public void setPublisher(String publisher)
    • getScore

      public double getScore()
      Gibt zurück:
      The score or rating of the game.
    • setScore

      public void setScore(double score)
    • getCoverImageUrl

      public String getCoverImageUrl()
      Gibt zurück:
      The URL of the game's cover image.
    • setCoverImageUrl

      public void setCoverImageUrl(String coverImageUrl)
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object