|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.shephertz.app42.paas.sdk.android.review.ReviewService
public class ReviewService
The service is a Review & Rating manager for any item. The item can be anything which has an id e.g. App on a AppStore/Marketplace, items in a catalogue, articles, blogs etc. It manages the comments and its associated rating. It also provides methods to fetch average, highest etc. Reviews. Reviews can be also be muted or unmuted if it has any objectionable content.
Review
Constructor Summary | |
---|---|
ReviewService(java.lang.String apiKey,
java.lang.String secretKey,
java.lang.String baseURL)
The costructor for the Service |
Method Summary | |
---|---|
Review |
createReview(java.lang.String userID,
java.lang.String itemID,
java.lang.String reviewComment,
double reviewRating)
Creates review for the specified item on the cloud |
java.util.ArrayList<Review> |
getAllReviews()
Fetches all reviews for the App |
java.util.ArrayList<Review> |
getAllReviews(int max,
int offset)
Fetches all reviews for the App by Paging. |
App42Response |
getAllReviewsCount()
Fetches count of all reviews for the App |
Review |
getAverageReviewByItem(java.lang.String itemId)
Fetches the average review for the specified itemId |
Review |
getHighestReviewByItem(java.lang.String itemId)
Fetches the highest review for the specified itemId |
Review |
getLowestReviewByItem(java.lang.String itemId)
Fetches the lowest review for the specified itemId |
java.util.ArrayList<Review> |
getReviewsByItem(java.lang.String itemId)
Fetches All Reviews based on the itemId |
java.util.ArrayList<Review> |
getReviewsByItem(java.lang.String itemId,
int max,
int offset)
Fetches All Reviews based on the itemId by Paging. |
App42Response |
getReviewsCountByItem(java.lang.String itemId)
Fetches count of All Reviews based on the itemId |
App42Response |
mute(java.lang.String reviewId)
Mutes the specified review |
App42Response |
unmute(java.lang.String reviewId)
UnMutes the specified review |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReviewService(java.lang.String apiKey, java.lang.String secretKey, java.lang.String baseURL)
apiKey
- secretKey
- baseURL
- Method Detail |
---|
public Review createReview(java.lang.String userID, java.lang.String itemID, java.lang.String reviewComment, double reviewRating) throws App42Exception
userId
- The user who has created the reviewitemId
- The item for which the review has to be createdreviewComment
- The review commentreviewRating
- Review rating in double
App42Exception
public java.util.ArrayList<Review> getAllReviews() throws App42Exception
App42Exception
public java.util.ArrayList<Review> getAllReviews(int max, int offset) throws App42Exception
max
- Maximum number of records to be fetchedoffset
- From where the records are to be fetched
App42Exception
public App42Response getAllReviewsCount() throws App42Exception
App42Exception
public Review getAverageReviewByItem(java.lang.String itemId) throws App42Exception
itemId
- The item for which the average review has to be fetched
App42Exception
public Review getHighestReviewByItem(java.lang.String itemId) throws App42Exception
itemId
- The item for which the highest review has to be fetched
App42Exception
public Review getLowestReviewByItem(java.lang.String itemId) throws App42Exception
itemId
- The item for which the lowest review has to be fetched
App42Exception
public java.util.ArrayList<Review> getReviewsByItem(java.lang.String itemId) throws App42Exception
itemId
- The item for which reviews have to be fetched
App42Exception
public java.util.ArrayList<Review> getReviewsByItem(java.lang.String itemId, int max, int offset) throws App42Exception
itemId
- The item for which reviews have to be fetcheduserName
- The name of the user for which file has to be retrievedmax
- Maximum number of records to be fetchedoffset
- From where the records are to be fetched
App42Exception
public App42Response getReviewsCountByItem(java.lang.String itemId) throws App42Exception
itemId
- The item for which count of reviews have to be fetched
App42Exception
public App42Response mute(java.lang.String reviewId) throws App42Exception
reviewId
- The Id of the review which has to be muted
App42Exception
public App42Response unmute(java.lang.String reviewId) throws App42Exception
reviewId
- The Id of the review which has to be unmuted
App42Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |