com.shephertz.app42.paas.sdk.java.review
Class ReviewResponseBuilder

java.lang.Object
  extended by com.shephertz.app42.paas.sdk.java.App42ResponseBuilder
      extended by com.shephertz.app42.paas.sdk.java.review.ReviewResponseBuilder

public class ReviewResponseBuilder
extends App42ResponseBuilder

ReviewResponseBuilder class converts the JSON response retrieved from the server to the value object i.e Review


Constructor Summary
ReviewResponseBuilder()
           
 
Method Summary
 java.util.ArrayList<Review> buildArrayResponse(java.lang.String json)
          Converts the response in JSON format to the list of value objects i.e Review
 Review buildResponse(java.lang.String json)
          Converts the response in JSON format to the value object i.e Review
 
Methods inherited from class com.shephertz.app42.paas.sdk.java.App42ResponseBuilder
buildObjectFromJSONTree, getNames, getServiceJSONObject, getTotalRecords, isResponseSuccess
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReviewResponseBuilder

public ReviewResponseBuilder()
Method Detail

buildArrayResponse

public java.util.ArrayList<Review> buildArrayResponse(java.lang.String json)
                                               throws java.lang.Exception
Converts the response in JSON format to the list of value objects i.e Review

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

buildResponse

public Review buildResponse(java.lang.String json)
                     throws java.lang.Exception
Converts the response in JSON format to the value object i.e Review

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