Go to console

RatingEvent

public class RatingEvent extends PredefinedEvent<RatingEvent>

A rating event to be sent to Answers with optional attributes.

Inherited Constant Summary

Public Constructor Summary

Public Method Summary

RatingEvent
putContentId(String contentId)
Put unique id for rated content.
RatingEvent
putContentName(String contentName)
Put name for rated content added to cart.
RatingEvent
putContentType(String contentType)
Put type of rated content.
RatingEvent
putRating(int rating)
Put integer content rating.

Inherited Method Summary

Public Constructors

public RatingEvent ()

Public Methods

public RatingEvent putContentId (String contentId)

Put unique id for rated content.

Parameters
contentId unique id for rated content, not null, no more than MAX_STRING_LENGTH chars
Returns
  • this

public RatingEvent putContentName (String contentName)

Put name for rated content added to cart. Answers uses content names for display purposes on the dashboard.

Parameters
contentName name for rated content, not null, no more than MAX_STRING_LENGTH chars
Returns
  • this

public RatingEvent putContentType (String contentType)

Put type of rated content. Answers uses content types to group content.

Parameters
contentType type of rated content, not null, no more than MAX_STRING_LENGTH chars
Returns
  • this

public RatingEvent putRating (int rating)

Put integer content rating.

Parameters
rating content rating
Returns
  • this