Putable

public interface Putable

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

Methods

getPutJson

JSONObject getPutJson()

Generates a JSON representation of the object that can be used in PUT 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 PUT requests