Account

@Serializable
data class Account(val accountId: String, val username: String, val acct: String, val url: String, val displayName: String, val bio: String, val avatarUrl: String, val avatarStaticUrl: String, val headerUrl: String, val headerStaticUrl: String, val isLocked: Boolean, val emojis: List<Emoji>, val createdAt: Instant, val lastStatusAt: LocalDate? = null, val statusesCount: Long, val followersCount: Long, val followingCount: Long, val isDiscoverable: Boolean? = null, val movedTo: Account? = null, val isGroup: Boolean, val fields: List<Field>? = null, val isBot: Boolean? = null, val source: Source? = null, val isSuspended: Boolean? = null, val muteExpiresAt: Instant? = null) : Pageable

Represents a user of Mastodon and their associated profile.

Constructors

Link copied to clipboard
constructor(accountId: String, username: String, acct: String, url: String, displayName: String, bio: String, avatarUrl: String, avatarStaticUrl: String, headerUrl: String, headerStaticUrl: String, isLocked: Boolean, emojis: List<Emoji>, createdAt: Instant, lastStatusAt: LocalDate? = null, statusesCount: Long, followersCount: Long, followingCount: Long, isDiscoverable: Boolean? = null, movedTo: Account? = null, isGroup: Boolean, fields: List<Field>? = null, isBot: Boolean? = null, source: Source? = null, isSuspended: Boolean? = null, muteExpiresAt: Instant? = null)

Properties

Link copied to clipboard
Link copied to clipboard

The WebFinger account URI.

Link copied to clipboard

URL to a static version of the avatar.

Link copied to clipboard

URL to an image that is shown next to the account's statuses and on its profile.

Link copied to clipboard
val bio: String

The profile's bio / description.

Link copied to clipboard
val createdAt: Instant

Date at which the account was created.

Link copied to clipboard
Link copied to clipboard

Custom emoji entities to be used when rendering the profile.

Link copied to clipboard
val fields: List<Field>? = null

Additional metadata attached to a profile as name-value pairs.

Link copied to clipboard

Total number of accounts following this account.

Link copied to clipboard

Total number of accounts followed by this account.

Link copied to clipboard

URL to a static version of the header.

Link copied to clipboard

URL to an image banner that is shown above the profile and in profile cards.

Link copied to clipboard
open override val id: String
Link copied to clipboard
val isBot: Boolean? = null

Whether this account is a robot.

Link copied to clipboard
val isDiscoverable: Boolean? = null

Whether the account has opted into discovery features such as the profile directory.

Link copied to clipboard

Whether this account represents a group.

Link copied to clipboard

Whether the account manually approves follow requests.

Link copied to clipboard
val isSuspended: Boolean? = null

Whether the account is suspended.

Link copied to clipboard
val lastStatusAt: LocalDate? = null

Date at which the last status was posted.

Link copied to clipboard
val movedTo: Account? = null

Indicates that the profile is currently inactive and that its user has moved to a new account.

Link copied to clipboard
val muteExpiresAt: Instant? = null

Instant when a timed mute will expire, if applicable.

Link copied to clipboard
val source: Source? = null

An entity to be used with API methods to verify and update credentials.

Link copied to clipboard

Total number of statuses posted.

Link copied to clipboard
val url: String

The location of the user's profile page.

Link copied to clipboard

The username of the account, not including the domain.