Record Class Status

java.lang.Object
java.lang.Record
org.mastodon4j.core.api.entities.Status

public record Status(String id, String uri, ZonedDateTime created_at, Account account, String content, String visibility, Boolean sensitive, String spoiler_text, List<MediaAttachment> media_attachments, Status.Application application, List<Status.Mention> mentions, List<Status.Tag> tags, List<CustomEmoji> emojis, Integer reblogs_count, Integer favourites_count, Integer replies_count, String url, String in_reply_to_id, String in_reply_to_account_id, Status reblog, Poll poll, PreviewCard card, String language, String text, ZonedDateTime edited_at, Boolean favourited, Boolean reblogged, Boolean muted, Boolean bookmarked, Boolean pinned, List<FilterResult> filtered) extends Record
  • Constructor Details

    • Status

      public Status(String id, String uri, ZonedDateTime created_at, Account account, String content, String visibility, Boolean sensitive, String spoiler_text, List<MediaAttachment> media_attachments, Status.Application application, List<Status.Mention> mentions, List<Status.Tag> tags, List<CustomEmoji> emojis, Integer reblogs_count, Integer favourites_count, Integer replies_count, String url, String in_reply_to_id, String in_reply_to_account_id, Status reblog, Poll poll, PreviewCard card, String language, String text, ZonedDateTime edited_at, Boolean favourited, Boolean reblogged, Boolean muted, Boolean bookmarked, Boolean pinned, List<FilterResult> filtered)
      Creates an instance of a Status record class.
      Parameters:
      id - the value for the id record component
      uri - the value for the uri record component
      created_at - the value for the created_at record component
      account - the value for the account record component
      content - the value for the content record component
      visibility - the value for the visibility record component
      sensitive - the value for the sensitive record component
      spoiler_text - the value for the spoiler_text record component
      media_attachments - the value for the media_attachments record component
      application - the value for the application record component
      mentions - the value for the mentions record component
      tags - the value for the tags record component
      emojis - the value for the emojis record component
      reblogs_count - the value for the reblogs_count record component
      favourites_count - the value for the favourites_count record component
      replies_count - the value for the replies_count record component
      url - the value for the url record component
      in_reply_to_id - the value for the in_reply_to_id record component
      in_reply_to_account_id - the value for the in_reply_to_account_id record component
      reblog - the value for the reblog record component
      poll - the value for the poll record component
      card - the value for the card record component
      language - the value for the language record component
      text - the value for the text record component
      edited_at - the value for the edited_at record component
      favourited - the value for the favourited record component
      reblogged - the value for the reblogged record component
      muted - the value for the muted record component
      bookmarked - the value for the bookmarked record component
      pinned - the value for the pinned record component
      filtered - the value for the filtered record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • uri

      public String uri()
      Returns the value of the uri record component.
      Returns:
      the value of the uri record component
    • created_at

      public ZonedDateTime created_at()
      Returns the value of the created_at record component.
      Returns:
      the value of the created_at record component
    • account

      public Account account()
      Returns the value of the account record component.
      Returns:
      the value of the account record component
    • content

      public String content()
      Returns the value of the content record component.
      Returns:
      the value of the content record component
    • visibility

      public String visibility()
      Returns the value of the visibility record component.
      Returns:
      the value of the visibility record component
    • sensitive

      public Boolean sensitive()
      Returns the value of the sensitive record component.
      Returns:
      the value of the sensitive record component
    • spoiler_text

      public String spoiler_text()
      Returns the value of the spoiler_text record component.
      Returns:
      the value of the spoiler_text record component
    • media_attachments

      public List<MediaAttachment> media_attachments()
      Returns the value of the media_attachments record component.
      Returns:
      the value of the media_attachments record component
    • application

      public Status.Application application()
      Returns the value of the application record component.
      Returns:
      the value of the application record component
    • mentions

      public List<Status.Mention> mentions()
      Returns the value of the mentions record component.
      Returns:
      the value of the mentions record component
    • tags

      public List<Status.Tag> tags()
      Returns the value of the tags record component.
      Returns:
      the value of the tags record component
    • emojis

      public List<CustomEmoji> emojis()
      Returns the value of the emojis record component.
      Returns:
      the value of the emojis record component
    • reblogs_count

      public Integer reblogs_count()
      Returns the value of the reblogs_count record component.
      Returns:
      the value of the reblogs_count record component
    • favourites_count

      public Integer favourites_count()
      Returns the value of the favourites_count record component.
      Returns:
      the value of the favourites_count record component
    • replies_count

      public Integer replies_count()
      Returns the value of the replies_count record component.
      Returns:
      the value of the replies_count record component
    • url

      public String url()
      Returns the value of the url record component.
      Returns:
      the value of the url record component
    • in_reply_to_id

      public String in_reply_to_id()
      Returns the value of the in_reply_to_id record component.
      Returns:
      the value of the in_reply_to_id record component
    • in_reply_to_account_id

      public String in_reply_to_account_id()
      Returns the value of the in_reply_to_account_id record component.
      Returns:
      the value of the in_reply_to_account_id record component
    • reblog

      public Status reblog()
      Returns the value of the reblog record component.
      Returns:
      the value of the reblog record component
    • poll

      public Poll poll()
      Returns the value of the poll record component.
      Returns:
      the value of the poll record component
    • card

      public PreviewCard card()
      Returns the value of the card record component.
      Returns:
      the value of the card record component
    • language

      public String language()
      Returns the value of the language record component.
      Returns:
      the value of the language record component
    • text

      public String text()
      Returns the value of the text record component.
      Returns:
      the value of the text record component
    • edited_at

      public ZonedDateTime edited_at()
      Returns the value of the edited_at record component.
      Returns:
      the value of the edited_at record component
    • favourited

      public Boolean favourited()
      Returns the value of the favourited record component.
      Returns:
      the value of the favourited record component
    • reblogged

      public Boolean reblogged()
      Returns the value of the reblogged record component.
      Returns:
      the value of the reblogged record component
    • muted

      public Boolean muted()
      Returns the value of the muted record component.
      Returns:
      the value of the muted record component
    • bookmarked

      public Boolean bookmarked()
      Returns the value of the bookmarked record component.
      Returns:
      the value of the bookmarked record component
    • pinned

      public Boolean pinned()
      Returns the value of the pinned record component.
      Returns:
      the value of the pinned record component
    • filtered

      public List<FilterResult> filtered()
      Returns the value of the filtered record component.
      Returns:
      the value of the filtered record component