前往主控台

ShareEvent

public class ShareEvent extends PredefinedEvent<ShareEvent>

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

Inherited Constant Summary

Public Constructor Summary

Public Method Summary

ShareEvent
putContentId(String contentId)
Put content id for shared content.
ShareEvent
putContentName(String contentName)
Put name for shared content.
ShareEvent
putContentType(String contentType)
Put type of shared content.
ShareEvent
putMethod(String shareMethod)
Put method used to share content.

Inherited Method Summary

Public Constructors

public ShareEvent ()

Public Methods

public ShareEvent putContentId (String contentId)

Put content id for shared content.

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

public ShareEvent putContentName (String contentName)

Put name for shared content. Answers uses content names for display purposes on the dashboard.

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

public ShareEvent putContentType (String contentType)

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

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

public ShareEvent putMethod (String shareMethod)

Put method used to share content.

Parameters
shareMethod share method used, not null
Returns
  • this