src/main/java/org/ednovo/gooru/server/service/PlayerAppServiceImpl.java
/**
	 * Updates the rating for a resource resource by calling an API.
	 * 
	 * @param gooruOid {@link String}
	 * @param score {@link Integer}
	 *  
	 * @return StarRating model object {@link StarRatingsDo} 
	 */
Updates the rating for a resource resource by calling an API.

@param gooruOid  String
@param score  Integer


Updates the rating for a resource resource by calling an API . @param gooruOid String @param score Integer
@Override
	public ArrayList<StarRatingsDo> updateResourceStarRatings(String gooruOid, int score) {
		JsonRepresentation jsonRepresentation=null;
		JSONObject jsonObject = null;
		try {
			String url = UrlGenerator.generateUrl(getRestEndPoint(), UrlToken.UPDATE_STAR_RATINGS,gooruOid, getLoggedInSessionToken());
			JSONObject updateStarRatingsJsonObj = new JSONObject();
			updateStarRatingsJsonObj.put(SCORE,score);
			JsonResponseRepresentation jsonResponseRep = ServiceProcessor.put(url, getRestUsername(), getRestPassword(),updateStarRatingsJsonObj.toString());
			jsonRepresentation=jsonResponseRep.getJsonRepresentation();
		} catch (Exception e) {
		}
		return deserializeStarRatings(jsonRepresentation);
	}
@ Override public ArrayList < StarRatingsDo > updateResourceStarRatings ( String gooruOid , int score ) { JsonRepresentation jsonRepresentation = null ; JSONObject jsonObject = null ; try { String url = UrlGenerator . generateUrl ( getRestEndPoint ( ) , UrlToken . UPDATE_STAR_RATINGS , gooruOid , getLoggedInSessionToken ( ) ) ; JSONObject updateStarRatingsJsonObj = new JSONObject ( ) ; updateStarRatingsJsonObj . put ( SCORE , score ) ; JsonResponseRepresentation jsonResponseRep = ServiceProcessor . put ( url , getRestUsername ( ) , getRestPassword ( ) , updateStarRatingsJsonObj . toString ( ) ) ; jsonRepresentation = jsonResponseRep . getJsonRepresentation ( ) ; } catch ( Exception e ) { } return deserializeStarRatings ( jsonRepresentation ) ; }
Updates the rating for a resource resource by calling an API.
Updates the rating for a resource resource by calling an API .
//			jsonObject= jsonRepresentation.getJsonObject();