Class TopGGAPIResponse

  • All Implemented Interfaces:
    dev.mayuna.simpleapi.deserializers.GsonDeserializer
    Direct Known Subclasses:
    Bot, Bots, MultiplierStatus, Stats, User, VoteStatus

    public class TopGGAPIResponse
    extends dev.mayuna.simpleapi.APIResponse<TopGGAPI>
    implements dev.mayuna.simpleapi.deserializers.GsonDeserializer
    top.gg's API response. You can check if the request was successful by calling wasSuccessful() (if it was not successful, error message should be in #getError())
    • Field Summary

      • Fields inherited from class dev.mayuna.simpleapi.APIResponse

        api, responseCode
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.gson.Gson getGson()  
      boolean wasSuccessful()  
      • Methods inherited from class dev.mayuna.simpleapi.APIResponse

        getApi, getResponseCode, setApi, setResponseCode
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TopGGAPIResponse

        public TopGGAPIResponse()
    • Method Detail

      • wasSuccessful

        public boolean wasSuccessful()
      • getGson

        public com.google.gson.Gson getGson()
        Specified by:
        getGson in interface dev.mayuna.simpleapi.deserializers.GsonDeserializer