Class SocialActivityEvent


public class SocialActivityEvent extends SocialEvent
New activity on a social media platform that is to be announced, such as a mention or a repost
Author:
mcawful
  • Constructor Details

    • SocialActivityEvent

      public SocialActivityEvent(String platform, String pollType, SocialItem item)
      Constructor
      Parameters:
      platform - the id of the platform, such as bluesky
      pollType - the id of the poll type that found the item, such as mentions
      item - the activity
  • Method Details

    • getPollType

      public String getPollType()
      Returns the poll type that found the item; chat and Discord each choose which poll types they announce
      Returns:
      the poll type id, such as mentions
    • getType

      public String getType()
      Returns the kind of activity
      Returns:
      post, repost, mention, reply or quote
    • getId

      public String getId()
      Returns the platform's id of the item
      Returns:
      the id
    • getAuthorId

      public String getAuthorId()
      Returns the permanent id of the account that made the item
      Returns:
      the account id
    • getAuthorName

      public String getAuthorName()
      Returns the account name of the author, such as a handle
      Returns:
      the account name
    • getAuthorDisplayName

      public String getAuthorDisplayName()
      Returns the display name of the author
      Returns:
      the display name; may be empty
    • getText

      public String getText()
      Returns the text of the item; for a repost, the text of the post that was reposted
      Returns:
      the text
    • getUrl

      public String getUrl()
      Returns the web address of the item; for a repost, the post that was reposted
      Returns:
      the URL