Recombee API Client
Public Member Functions | Properties | List of all members
Recombee.ApiClient.Bindings.Rating Class Reference

Rating Binding More...

Inheritance diagram for Recombee.ApiClient.Bindings.Rating:
Inheritance graph
[legend]
Collaboration diagram for Recombee.ApiClient.Bindings.Rating:
Collaboration graph
[legend]

Public Member Functions

 Rating (string userId, string itemId, double rating, DateTime? timestamp=null, string recommId=null, Dictionary< string, object > additionalData=null)
 
override bool Equals (Object obj)
 Determines whether the specified object is equal to the current object More...
 
override int GetHashCode ()
 Hash function More...
 

Properties

string UserId [get]
 User who submitted the rating More...
 
string ItemId [get]
 Rated item More...
 
DateTime? Timestamp [get]
 UTC timestamp of the rating as ISO8601-1 pattern or UTC epoch time. The default value is the current time. More...
 
double RatingValue [get]
 Rating rescaled to interval [-1.0,1.0], where -1.0 means the worst rating possible, 0.0 means neutral, and 1.0 means absolutely positive rating. For example, in the case of 5-star evaluations, rating = (numStars-3)/2 formula may be used for the conversion. More...
 
string RecommId [get]
 If this rating is based on a recommendation request, recommId is the id of the clicked recommendation. More...
 
Dictionary< string, object > AdditionalData [get]
 A dictionary of additional data for the interaction. More...
 

Detailed Description

Rating Binding

Constructor & Destructor Documentation

◆ Rating()

Recombee.ApiClient.Bindings.Rating.Rating ( string  userId,
string  itemId,
double  rating,
DateTime?  timestamp = null,
string  recommId = null,
Dictionary< string, object >  additionalData = null 
)
inline

Member Function Documentation

◆ Equals()

override bool Recombee.ApiClient.Bindings.Rating.Equals ( Object  obj)
inline

Determines whether the specified object is equal to the current object

Parameters
objThe object to compare with the current object
Returns
true if the specified object is equal to the current object; otherwise, false

◆ GetHashCode()

override int Recombee.ApiClient.Bindings.Rating.GetHashCode ( )
inline

Hash function

Returns
A hash code for the current object

Property Documentation

◆ AdditionalData

Dictionary<string, object> Recombee.ApiClient.Bindings.Rating.AdditionalData
get

A dictionary of additional data for the interaction.

◆ ItemId

string Recombee.ApiClient.Bindings.Rating.ItemId
get

Rated item

◆ RatingValue

double Recombee.ApiClient.Bindings.Rating.RatingValue
get

Rating rescaled to interval [-1.0,1.0], where -1.0 means the worst rating possible, 0.0 means neutral, and 1.0 means absolutely positive rating. For example, in the case of 5-star evaluations, rating = (numStars-3)/2 formula may be used for the conversion.

◆ RecommId

string Recombee.ApiClient.Bindings.Rating.RecommId
get

If this rating is based on a recommendation request, recommId is the id of the clicked recommendation.

◆ Timestamp

DateTime? Recombee.ApiClient.Bindings.Rating.Timestamp
get

UTC timestamp of the rating as ISO8601-1 pattern or UTC epoch time. The default value is the current time.

◆ UserId

string Recombee.ApiClient.Bindings.Rating.UserId
get

User who submitted the rating


The documentation for this class was generated from the following file: