com.shephertz.app42.paas.sdk.jme.appTab
Class ChargeResponseBuilder

java.lang.Object
  extended by com.shephertz.app42.paas.sdk.jme.App42ResponseBuilder
      extended by com.shephertz.app42.paas.sdk.jme.appTab.ChargeResponseBuilder

public class ChargeResponseBuilder
extends App42ResponseBuilder

UsageResponseBuilder class converts the JSON response retrieved from the server to the value object i.e Usage


Constructor Summary
ChargeResponseBuilder()
           
 
Method Summary
 void buildObjectFromJSONTree(java.lang.Object obj, org.json.jme.JSONObject jsonObj)
           
 Charge buildResponse(java.lang.String json)
          Converts the response in JSON format to the value object i.e Usage
 
Methods inherited from class com.shephertz.app42.paas.sdk.jme.App42ResponseBuilder
getNames, getServiceJSONObject, getTotalRecords, isResponseSuccess
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChargeResponseBuilder

public ChargeResponseBuilder()
Method Detail

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 Charge buildResponse(java.lang.String json)
                     throws java.lang.Exception
Converts the response in JSON format to the value object i.e Usage

Parameters:
json - - response in JSON format
Returns:
Usage object filled with json data
Throws:
java.lang.Exception