com.shephertz.app42.paas.sdk.jme.gallery
Class AlbumResponseBuilder
java.lang.Object
com.shephertz.app42.paas.sdk.jme.App42ResponseBuilder
com.shephertz.app42.paas.sdk.jme.gallery.AlbumResponseBuilder
public class AlbumResponseBuilder
- extends App42ResponseBuilder
AlbumResponseBuilder class converts the JSON response retrieved from the
server to the value object i.e Album
Method Summary |
java.util.Vector |
buildArrayResponse(java.lang.String json)
Converts the response in JSON format to the list of value objects i.e
Album |
void |
buildObjectFromJSONTree(java.lang.Object obj,
org.json.jme.JSONObject jsonObj)
|
Album |
buildResponse(java.lang.String json)
Converts the response in JSON format to the value object i.e Album |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlbumResponseBuilder
public AlbumResponseBuilder()
buildArrayResponse
public java.util.Vector buildArrayResponse(java.lang.String json)
throws java.lang.Exception
- Converts the response in JSON format to the list of value objects i.e
Album
- Parameters:
json
- - response in JSON format
- Returns:
- List of Album object filled with json data
- Throws:
java.lang.Exception
buildObjectFromJSONTree
public void buildObjectFromJSONTree(java.lang.Object obj,
org.json.jme.JSONObject jsonObj)
throws java.lang.Exception
- Specified by:
buildObjectFromJSONTree
in class App42ResponseBuilder
- Throws:
java.lang.Exception
buildResponse
public Album buildResponse(java.lang.String json)
throws java.lang.Exception
- Converts the response in JSON format to the value object i.e Album
- Parameters:
json
- - response in JSON format
- Returns:
- Album object filled with json data
- Throws:
java.lang.Exception