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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionStatus(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 aStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaccount()Returns the value of theaccountrecord component.Returns the value of theapplicationrecord component.Returns the value of thebookmarkedrecord component.card()Returns the value of thecardrecord component.content()Returns the value of thecontentrecord component.Returns the value of thecreated_atrecord component.Returns the value of theedited_atrecord component.emojis()Returns the value of theemojisrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefavouritedrecord component.Returns the value of thefavourites_countrecord component.filtered()Returns the value of thefilteredrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thein_reply_to_account_idrecord component.Returns the value of thein_reply_to_idrecord component.language()Returns the value of thelanguagerecord component.Returns the value of themedia_attachmentsrecord component.mentions()Returns the value of thementionsrecord component.muted()Returns the value of themutedrecord component.pinned()Returns the value of thepinnedrecord component.poll()Returns the value of thepollrecord component.reblog()Returns the value of thereblogrecord component.Returns the value of therebloggedrecord component.Returns the value of thereblogs_countrecord component.Returns the value of thereplies_countrecord component.Returns the value of thesensitiverecord component.Returns the value of thespoiler_textrecord component.tags()Returns the value of thetagsrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.uri()Returns the value of theurirecord component.url()Returns the value of theurlrecord component.Returns the value of thevisibilityrecord component.
-
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 aStatusrecord class.- Parameters:
id- the value for theidrecord componenturi- the value for theurirecord componentcreated_at- the value for thecreated_atrecord componentaccount- the value for theaccountrecord componentcontent- the value for thecontentrecord componentvisibility- the value for thevisibilityrecord componentsensitive- the value for thesensitiverecord componentspoiler_text- the value for thespoiler_textrecord componentmedia_attachments- the value for themedia_attachmentsrecord componentapplication- the value for theapplicationrecord componentmentions- the value for thementionsrecord componenttags- the value for thetagsrecord componentemojis- the value for theemojisrecord componentreblogs_count- the value for thereblogs_countrecord componentfavourites_count- the value for thefavourites_countrecord componentreplies_count- the value for thereplies_countrecord componenturl- the value for theurlrecord componentin_reply_to_id- the value for thein_reply_to_idrecord componentin_reply_to_account_id- the value for thein_reply_to_account_idrecord componentreblog- the value for thereblogrecord componentpoll- the value for thepollrecord componentcard- the value for thecardrecord componentlanguage- the value for thelanguagerecord componenttext- the value for thetextrecord componentedited_at- the value for theedited_atrecord componentfavourited- the value for thefavouritedrecord componentreblogged- the value for therebloggedrecord componentmuted- the value for themutedrecord componentbookmarked- the value for thebookmarkedrecord componentpinned- the value for thepinnedrecord componentfiltered- the value for thefilteredrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
uri
Returns the value of theurirecord component.- Returns:
- the value of the
urirecord component
-
created_at
Returns the value of thecreated_atrecord component.- Returns:
- the value of the
created_atrecord component
-
account
Returns the value of theaccountrecord component.- Returns:
- the value of the
accountrecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
visibility
Returns the value of thevisibilityrecord component.- Returns:
- the value of the
visibilityrecord component
-
sensitive
Returns the value of thesensitiverecord component.- Returns:
- the value of the
sensitiverecord component
-
spoiler_text
Returns the value of thespoiler_textrecord component.- Returns:
- the value of the
spoiler_textrecord component
-
media_attachments
Returns the value of themedia_attachmentsrecord component.- Returns:
- the value of the
media_attachmentsrecord component
-
application
Returns the value of theapplicationrecord component.- Returns:
- the value of the
applicationrecord component
-
mentions
Returns the value of thementionsrecord component.- Returns:
- the value of the
mentionsrecord component
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-
emojis
Returns the value of theemojisrecord component.- Returns:
- the value of the
emojisrecord component
-
reblogs_count
Returns the value of thereblogs_countrecord component.- Returns:
- the value of the
reblogs_countrecord component
-
favourites_count
Returns the value of thefavourites_countrecord component.- Returns:
- the value of the
favourites_countrecord component
-
replies_count
Returns the value of thereplies_countrecord component.- Returns:
- the value of the
replies_countrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
in_reply_to_id
Returns the value of thein_reply_to_idrecord component.- Returns:
- the value of the
in_reply_to_idrecord component
-
in_reply_to_account_id
Returns the value of thein_reply_to_account_idrecord component.- Returns:
- the value of the
in_reply_to_account_idrecord component
-
reblog
Returns the value of thereblogrecord component.- Returns:
- the value of the
reblogrecord component
-
poll
Returns the value of thepollrecord component.- Returns:
- the value of the
pollrecord component
-
card
Returns the value of thecardrecord component.- Returns:
- the value of the
cardrecord component
-
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
edited_at
Returns the value of theedited_atrecord component.- Returns:
- the value of the
edited_atrecord component
-
favourited
Returns the value of thefavouritedrecord component.- Returns:
- the value of the
favouritedrecord component
-
reblogged
Returns the value of therebloggedrecord component.- Returns:
- the value of the
rebloggedrecord component
-
muted
Returns the value of themutedrecord component.- Returns:
- the value of the
mutedrecord component
-
bookmarked
Returns the value of thebookmarkedrecord component.- Returns:
- the value of the
bookmarkedrecord component
-
pinned
Returns the value of thepinnedrecord component.- Returns:
- the value of the
pinnedrecord component
-
filtered
Returns the value of thefilteredrecord component.- Returns:
- the value of the
filteredrecord component
-