All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kaltura.client.services.RatingService Maven / Gradle / Ivy

Go to download

KalturaClient is a library of Java classes that can be used to interact with the Kaltura REST API. More information about the REST API can be found at http://corp.kaltura.com/Products/Kaltura-API Many of the Java classes in this library are auto-generated from a schema that defines the objects that are used to interect with the API. The current schema can be found at http://www.kaltura.com/api_v3/api_schema.php

There is a newer version: 19.3.0
Show newest version
// ===================================================================================================
//                           _  __     _ _
//                          | |/ /__ _| | |_ _  _ _ _ __ _
//                          | ' .
//
// @ignore
// ===================================================================================================
package com.kaltura.client.services;

import com.kaltura.client.types.RatingCount;
import com.kaltura.client.types.RatingCountFilter;
import com.kaltura.client.utils.request.ListResponseRequestBuilder;
import com.kaltura.client.utils.request.RequestBuilder;

/**
 * This class was generated using generate.php
 * against an XML schema provided by Kaltura.
 * 
 * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN.
 */

/**
 * Allows user to manipulate their entry rating
 * 
 * @param entryId 
 * @param filter 
 * @param entryId 
 * @param rank 
 * @param entryId 
 */
public class RatingService {
	
	public static class CheckRatingRatingBuilder extends RequestBuilder {
		
		public CheckRatingRatingBuilder(String entryId) {
			super(Integer.class, "rating_rating", "checkRating");
			params.add("entryId", entryId);
		}
		
		public void entryId(String multirequestToken) {
			params.add("entryId", multirequestToken);
		}
	}

    public static CheckRatingRatingBuilder checkRating(String entryId)  {
		return new CheckRatingRatingBuilder(entryId);
	}
	
	public static class GetRatingCountsRatingBuilder extends ListResponseRequestBuilder {
		
		public GetRatingCountsRatingBuilder(RatingCountFilter filter) {
			super(RatingCount.class, "rating_rating", "getRatingCounts");
			params.add("filter", filter);
		}
	}

    public static GetRatingCountsRatingBuilder getRatingCounts(RatingCountFilter filter)  {
		return new GetRatingCountsRatingBuilder(filter);
	}
	
	public static class RateRatingBuilder extends RequestBuilder {
		
		public RateRatingBuilder(String entryId, int rank) {
			super(Integer.class, "rating_rating", "rate");
			params.add("entryId", entryId);
			params.add("rank", rank);
		}
		
		public void entryId(String multirequestToken) {
			params.add("entryId", multirequestToken);
		}
		
		public void rank(String multirequestToken) {
			params.add("rank", multirequestToken);
		}
	}

    public static RateRatingBuilder rate(String entryId, int rank)  {
		return new RateRatingBuilder(entryId, rank);
	}
	
	public static class RemoveRatingRatingBuilder extends RequestBuilder {
		
		public RemoveRatingRatingBuilder(String entryId) {
			super(Boolean.class, "rating_rating", "removeRating");
			params.add("entryId", entryId);
		}
		
		public void entryId(String multirequestToken) {
			params.add("entryId", multirequestToken);
		}
	}

    public static RemoveRatingRatingBuilder removeRating(String entryId)  {
		return new RemoveRatingRatingBuilder(entryId);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy