Record Class Account

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 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 a Account record class.
      Parameters:
      id - the value for the id record component
      username - the value for the username record component
      acct - the value for the acct record component
      url - the value for the url record component
      display_name - the value for the display_name record component
      note - the value for the note record component
      avatar - the value for the avatar record component
      avatar_static - the value for the avatar_static record component
      header - the value for the header record component
      header_static - the value for the header_static record component
      locked - the value for the locked record component
      fields - the value for the fields record component
      emojis - the value for the emojis record component
      bot - the value for the bot record component
      group - the value for the group record component
      discoverable - the value for the discoverable record component
      noindex - the value for the noindex record component
      moved - the value for the moved record component
      suspended - the value for the suspended record component
      limited - the value for the limited record component
      created_at - the value for the created_at record component
      last_status_at - the value for the last_status_at record component
      statuses_count - the value for the statuses_count record component
      followers_count - the value for the followers_count record component
      following_count - the value for the following_count 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
    • username

      public String username()
      Returns the value of the username record component.
      Returns:
      the value of the username record component
    • acct

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

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

      public String display_name()
      Returns the value of the display_name record component.
      Returns:
      the value of the display_name record component
    • note

      public String note()
      Returns the value of the note record component.
      Returns:
      the value of the note record component
    • avatar

      public String avatar()
      Returns the value of the avatar record component.
      Returns:
      the value of the avatar record component
    • avatar_static

      public String avatar_static()
      Returns the value of the avatar_static record component.
      Returns:
      the value of the avatar_static record component
    • header

      public String header()
      Returns the value of the header record component.
      Returns:
      the value of the header record component
    • header_static

      public String header_static()
      Returns the value of the header_static record component.
      Returns:
      the value of the header_static record component
    • locked

      public Boolean locked()
      Returns the value of the locked record component.
      Returns:
      the value of the locked record component
    • fields

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

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

      public Boolean bot()
      Returns the value of the bot record component.
      Returns:
      the value of the bot record component
    • group

      public Boolean group()
      Returns the value of the group record component.
      Returns:
      the value of the group record component
    • discoverable

      public Boolean discoverable()
      Returns the value of the discoverable record component.
      Returns:
      the value of the discoverable record component
    • noindex

      public Boolean noindex()
      Returns the value of the noindex record component.
      Returns:
      the value of the noindex record component
    • moved

      public Account moved()
      Returns the value of the moved record component.
      Returns:
      the value of the moved record component
    • suspended

      public Boolean suspended()
      Returns the value of the suspended record component.
      Returns:
      the value of the suspended record component
    • limited

      public Boolean limited()
      Returns the value of the limited record component.
      Returns:
      the value of the limited 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
    • last_status_at

      public String last_status_at()
      Returns the value of the last_status_at record component.
      Returns:
      the value of the last_status_at record component
    • statuses_count

      public Integer statuses_count()
      Returns the value of the statuses_count record component.
      Returns:
      the value of the statuses_count record component
    • followers_count

      public Integer followers_count()
      Returns the value of the followers_count record component.
      Returns:
      the value of the followers_count record component
    • following_count

      public Integer following_count()
      Returns the value of the following_count record component.
      Returns:
      the value of the following_count record component