Class GsonApiResponse<T extends WrappedApi>

    • Constructor Summary

      Constructors 
      Constructor Description
      GsonApiResponse()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object deserialize​(java.lang.Object responseBody)
      Deserialize the response body into an object of current type.
      com.google.gson.Gson getGson()
      Get a Gson instance.
      • Methods inherited from class java.lang.Object

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

      • GsonApiResponse

        public GsonApiResponse()
    • Method Detail

      • getGson

        public com.google.gson.Gson getGson()
        Get a Gson instance.
        Returns:
        A Gson instance.
      • deserialize

        public java.lang.Object deserialize​(java.lang.Object responseBody)
        Description copied from class: DeserializableApiResponse
        Deserialize the response body into an object of current type.
        Specified by:
        deserialize in class DeserializableApiResponse<T extends WrappedApi>
        Parameters:
        responseBody - The response body to deserialize.
        Returns:
        The deserialized object.