Class AuthDeserializer

  • All Implemented Interfaces:
    com.google.gson.JsonDeserializer<Auth>

    public class AuthDeserializer
    extends java.lang.Object
    implements com.google.gson.JsonDeserializer<Auth>
    Custom deserializer for Auth data from the OAuth endpoint.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Auth deserialize​(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context)
      Deserializes the OAuth auth endpoint JSON into a new Auth object.
      • Methods inherited from class java.lang.Object

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

      • AuthDeserializer

        public AuthDeserializer()
    • Method Detail

      • deserialize

        public Auth deserialize​(com.google.gson.JsonElement json,
                                java.lang.reflect.Type typeOfT,
                                com.google.gson.JsonDeserializationContext context)
        Deserializes the OAuth auth endpoint JSON into a new Auth object.
        Specified by:
        deserialize in interface com.google.gson.JsonDeserializer<Auth>
        Parameters:
        json - the Json data being deserialized
        typeOfT - the type of the Object to deserialize to
        context - the deserialization context
        Returns:
        the newly created Auth object