Package com.batch.android.query
Class Query
- java.lang.Object
-
- com.batch.android.query.Query
-
- Direct Known Subclasses:
AttributesCheckQuery,AttributesSendQuery,LocalCampaignsQuery,PushQuery,StartQuery,TrackingQuery
public abstract class Query extends java.lang.ObjectMother of all queries, containing id type and context
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected android.content.ContextgetContext()Get the saved application contextjava.lang.StringgetID()Get the ID of the queryQueryTypegetType()Get the type of the queryJSONObjecttoJSON()Serialize this query to json
Child would typicaly extends this method to provide extra data
-
-
-
Constructor Detail
-
Query
public Query(android.content.Context context, QueryType type)- Parameters:
context-type-
-
-
Method Detail
-
getID
public java.lang.String getID()
Get the ID of the query- Returns:
-
getType
public QueryType getType()
Get the type of the query- Returns:
-
getContext
protected android.content.Context getContext()
Get the saved application context- Returns:
-
toJSON
public JSONObject toJSON() throws JSONException
Serialize this query to json
Child would typicaly extends this method to provide extra data- Returns:
- Throws:
JSONException
-
-