Class RatingStatistics
This class represents the statistical information for the ratings of an individual referenced item.
Inheritance
System.Object
RatingStatistics
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Social.Ratings.Core
Assembly: EPiServer.Social.Ratings.Core.dll
Version: 1.5.4Syntax
public class RatingStatistics
Constructors
RatingStatistics(StatisticsId, Reference, Int64, Int64)
Constructs and returns an initialized RatingStatistics instance.
Declaration
public RatingStatistics(StatisticsId id, Reference target, long sum = 0L, long count = 0L)
Parameters
| Type | Name | Description |
|---|---|---|
| StatisticsId | id | The Id of the RatingStatistics entry. |
| Reference | target | A reference to the target the rating statistics apply to. |
| System.Int64 | sum | The sum of all ratings for the target item. |
| System.Int64 | count | The total count of all ratings for the target item. |
Properties
Id
Gets the unique identifier for the statistics generated by the Social platform.
Declaration
public StatisticsId Id { get; }
Property Value
| Type | Description |
|---|---|
| StatisticsId |
Mean
Gets the mean value of the ratings for an item.
Declaration
public double Mean { get; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Sum
Gets the sum of all ratings for an item.
Declaration
public long Sum { get; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
Target
Gets a reference to the target the statistics applies to.
Declaration
public Reference Target { get; }
Property Value
| Type | Description |
|---|---|
| Reference |
TotalCount
Gets the total number of ratings for an item.
Declaration
public long TotalCount { get; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |