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

发送以下问题的反馈:

此网页
需要帮助?请访问我们的支持页面