You are here: Ektron Namespace > .NET Assemblies > Ektron.Cms.API Namespace > Ektron.Cms.API.Content Namespace > Classes > ContentRating Class > ContentRating Methods > GetContentRatingStatistics Method > GetContentRatingStatistics
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
ContentRating.GetContentRatingStatistics Method (Long, DateTime, DateTime)

Returns a collection with keys as ordinal numbers and frequency as the value. That is, {1=>3,2=>7,...,9=>12}. Rating results are bounded by startDate and endDate. 

This function is overloaded. See Also: GetContentRatingStatistics(Long Long String)

C#
public Collection GetContentRatingStatistics(Long contentID, DateTime startDate, DateTime endDate);
Visual Basic
Public Function GetContentRatingStatistics(ByVal contentID As Long, ByVal startDate As DateTime, ByVal endDate As DateTime) As Collection
Parameters 
Description 
contentID 
The numeric ID associated with the content block being rated. 
startDate 
Bounds the result set by only ratings that occurred after this date. 
endDate 
Bounds the result set by only ratings that occurred before this date. 

Returns a collection of data with keys "total" => number of ratings, "sum" => sum of all ratings, "r1, "r2", "r3", "r4", "r5", "r6", "r7", "r8", "r9".

Note that average rating = sum/total.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!