Class ResponseDeserializer
- java.lang.Object
-
- com.batch.android.query.serialization.deserializers.ResponseDeserializer
-
- Direct Known Subclasses:
AttributesCheckResponseDeserializer,AttributesSendResponseDeserializer,LocalCampaignsResponseDeserializer,PushResponseDeserializer,StartResponseDeserializer,TrackingResponseDeserializer
public abstract class ResponseDeserializer extends java.lang.ObjectAbstract deserializer class forResponse
-
-
Field Summary
Fields Modifier and Type Field Description protected JSONObjectjsonInitial json response
-
Constructor Summary
Constructors Modifier Constructor Description protectedResponseDeserializer(JSONObject json)Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Responsedeserialize()Deserialize method to implement in the child classprotected java.lang.StringgetId()Get the response id
-
-
-
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 JSONExceptionGet 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
-
-