Class ResponseDeserializer

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected JSONObject json
      Initial json response
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract Response deserialize()
      Deserialize method to implement in the child class
      protected java.lang.String getId()
      Get the response id
      • Methods inherited from class java.lang.Object

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

      • json

        protected final JSONObject json
        Initial json response
    • Constructor Detail

      • ResponseDeserializer

        protected ResponseDeserializer​(JSONObject json)
        Constructor
        Parameters:
        json - json response
    • Method Detail

      • getId

        protected java.lang.String getId()
                                  throws JSONException
        Get the response id
        Returns:
        Response identifier
        Throws:
        JSONException - parsing exception
      • deserialize

        public abstract Response deserialize()
                                      throws JSONException
        Deserialize method to implement in the child class
        Returns:
        The child response class deserialized
        Throws:
        JSONException - parsing exception