Postable

public interface Postable

Classes that implement this interface can be sent in the bodies of requests sent using org.codethechange.culturemesh.API.Post.model(RequestQueue,Postable,String,String,Response.Listener).

Methods

getPostJson

JSONObject getPostJson()

Generates a JSON representation of the object that can be used in POST requests to the server. The exact format of the JSON depends upon the specifications of the server API. See the server’s Swagger documentation for more.

Throws:
  • JSONException – May be thrown if any of the values to include in the JSON are incompatible with the JSON format
Returns:

JSON representation of the object suitable for inclusion in the bodies of POST requests