java.lang.Object
java.lang.Record
org.mastodon4j.core.api.entities.Account
public record Account(String id, String username, String acct, String url, String display_name, String note, String avatar, String avatar_static, String header, String header_static, Boolean locked, List<Field> fields, List<CustomEmoji> emojis, Boolean bot, Boolean group, Boolean discoverable, Boolean noindex, Account moved, Boolean suspended, Boolean limited, ZonedDateTime created_at, String last_status_at, Integer statuses_count, Integer followers_count, Integer following_count)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAccount(String id, String username, String acct, String url, String display_name, String note, String avatar, String avatar_static, String header, String header_static, Boolean locked, List<Field> fields, List<CustomEmoji> emojis, Boolean bot, Boolean group, Boolean discoverable, Boolean noindex, Account moved, Boolean suspended, Boolean limited, ZonedDateTime created_at, String last_status_at, Integer statuses_count, Integer followers_count, Integer following_count) Creates an instance of aAccountrecord class. -
Method Summary
Modifier and TypeMethodDescriptionacct()Returns the value of theacctrecord component.avatar()Returns the value of theavatarrecord component.Returns the value of theavatar_staticrecord component.bot()Returns the value of thebotrecord component.Returns the value of thecreated_atrecord component.Returns the value of thediscoverablerecord component.Returns the value of thedisplay_namerecord component.emojis()Returns the value of theemojisrecord component.final booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.Returns the value of thefollowers_countrecord component.Returns the value of thefollowing_countrecord component.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.header()Returns the value of theheaderrecord component.Returns the value of theheader_staticrecord component.id()Returns the value of theidrecord component.Returns the value of thelast_status_atrecord component.limited()Returns the value of thelimitedrecord component.locked()Returns the value of thelockedrecord component.moved()Returns the value of themovedrecord component.noindex()Returns the value of thenoindexrecord component.note()Returns the value of thenoterecord component.Returns the value of thestatuses_countrecord component.Returns the value of thesuspendedrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
Account
public Account(String id, String username, String acct, String url, String display_name, String note, String avatar, String avatar_static, String header, String header_static, Boolean locked, List<Field> fields, List<CustomEmoji> emojis, Boolean bot, Boolean group, Boolean discoverable, Boolean noindex, Account moved, Boolean suspended, Boolean limited, ZonedDateTime created_at, String last_status_at, Integer statuses_count, Integer followers_count, Integer following_count) Creates an instance of aAccountrecord class.- Parameters:
id- the value for theidrecord componentusername- the value for theusernamerecord componentacct- the value for theacctrecord componenturl- the value for theurlrecord componentdisplay_name- the value for thedisplay_namerecord componentnote- the value for thenoterecord componentavatar- the value for theavatarrecord componentavatar_static- the value for theavatar_staticrecord componentheader- the value for theheaderrecord componentheader_static- the value for theheader_staticrecord componentlocked- the value for thelockedrecord componentfields- the value for thefieldsrecord componentemojis- the value for theemojisrecord componentbot- the value for thebotrecord componentgroup- the value for thegrouprecord componentdiscoverable- the value for thediscoverablerecord componentnoindex- the value for thenoindexrecord componentmoved- the value for themovedrecord componentsuspended- the value for thesuspendedrecord componentlimited- the value for thelimitedrecord componentcreated_at- the value for thecreated_atrecord componentlast_status_at- the value for thelast_status_atrecord componentstatuses_count- the value for thestatuses_countrecord componentfollowers_count- the value for thefollowers_countrecord componentfollowing_count- the value for thefollowing_countrecord 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
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
acct
Returns the value of theacctrecord component.- Returns:
- the value of the
acctrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
display_name
Returns the value of thedisplay_namerecord component.- Returns:
- the value of the
display_namerecord component
-
note
Returns the value of thenoterecord component.- Returns:
- the value of the
noterecord component
-
avatar
Returns the value of theavatarrecord component.- Returns:
- the value of the
avatarrecord component
-
avatar_static
Returns the value of theavatar_staticrecord component.- Returns:
- the value of the
avatar_staticrecord component
-
header
Returns the value of theheaderrecord component.- Returns:
- the value of the
headerrecord component
-
header_static
Returns the value of theheader_staticrecord component.- Returns:
- the value of the
header_staticrecord component
-
locked
Returns the value of thelockedrecord component.- Returns:
- the value of the
lockedrecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-
emojis
Returns the value of theemojisrecord component.- Returns:
- the value of the
emojisrecord component
-
bot
Returns the value of thebotrecord component.- Returns:
- the value of the
botrecord component
-
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
discoverable
Returns the value of thediscoverablerecord component.- Returns:
- the value of the
discoverablerecord component
-
noindex
Returns the value of thenoindexrecord component.- Returns:
- the value of the
noindexrecord component
-
moved
Returns the value of themovedrecord component.- Returns:
- the value of the
movedrecord component
-
suspended
Returns the value of thesuspendedrecord component.- Returns:
- the value of the
suspendedrecord component
-
limited
Returns the value of thelimitedrecord component.- Returns:
- the value of the
limitedrecord component
-
created_at
Returns the value of thecreated_atrecord component.- Returns:
- the value of the
created_atrecord component
-
last_status_at
Returns the value of thelast_status_atrecord component.- Returns:
- the value of the
last_status_atrecord component
-
statuses_count
Returns the value of thestatuses_countrecord component.- Returns:
- the value of the
statuses_countrecord component
-
followers_count
Returns the value of thefollowers_countrecord component.- Returns:
- the value of the
followers_countrecord component
-
following_count
Returns the value of thefollowing_countrecord component.- Returns:
- the value of the
following_countrecord component
-