CommonUser

abstract class CommonUser(val json: JsonObject, val client: ApiClient) : PenicillinModel

Constructors

Link copied to clipboard
fun CommonUser(json: JsonObject, client: ApiClient)

Types

Link copied to clipboard
data class ProfileImageExtension(val json: JsonObject, val client: ApiClient) : PenicillinModel

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Indicates whether some other model is "equal to" this one.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for the model.

Link copied to clipboard
abstract override fun toString(): String

Returns a string representation of the model.

Properties

Link copied to clipboard
val advertiserAccountServiceLevels: List<String>
Link copied to clipboard
val advertiserAccountType: String?
Link copied to clipboard
val analyticsType: String?
Link copied to clipboard
val blockedBy: Boolean
Link copied to clipboard
val blocking: Boolean
Link copied to clipboard
val businessProfileState: String?
Link copied to clipboard
val canMediaTag: Boolean?
Link copied to clipboard
override val client: ApiClient

The ApiClient instance.

Link copied to clipboard
val contributorsEnabled: Boolean
Link copied to clipboard
val createdAtRaw: String
Link copied to clipboard
val defaultProfile: Boolean
Link copied to clipboard
val defaultProfileImage: Boolean
Link copied to clipboard
val description: String
Link copied to clipboard
val entities: UserEntity?
Link copied to clipboard
val fastFollowersCount: Int?
Link copied to clipboard
val favouritesCount: Int
Link copied to clipboard
val followedBy: Boolean?
Link copied to clipboard
val followersCount: Int
Link copied to clipboard
val following: Boolean
Link copied to clipboard
val followRequestSent: Boolean
Link copied to clipboard
val friendsCount: Int
Link copied to clipboard
val geoEnabled: Boolean
Link copied to clipboard
val hasCustomTimelines: Boolean?
Link copied to clipboard
val hasExtendedProfile: Boolean
Link copied to clipboard
val id: Long
Link copied to clipboard
val idStr: String
Link copied to clipboard
val isTranslationEnabled: Boolean
Link copied to clipboard
val isTranslator: Boolean
Link copied to clipboard
override val json: JsonObject

The underlying JsonObject.

Link copied to clipboard
open val keyCase: JsonKeyCase
Link copied to clipboard
open val keyConverter: JsonKeyConverter
Link copied to clipboard
val langRaw: String?
Link copied to clipboard
val listedCount: Int
Link copied to clipboard
val liveFollowing: Boolean
Link copied to clipboard
val location: String
Link copied to clipboard
val mediaCount: Int?
Link copied to clipboard
val muting: Boolean
Link copied to clipboard
val name: String
Link copied to clipboard
val needsPhoneVerification: Boolean?
Link copied to clipboard
val normalFollowersCount: Int?
Link copied to clipboard
val notifications: Boolean
Link copied to clipboard
val pinnedTweetIds: List<Long>
Link copied to clipboard
val pinnedTweetIdsStr: List<String>
Link copied to clipboard
val profileBackgroundColor: String
Link copied to clipboard
val profileBackgroundImageUrl: String?
Link copied to clipboard
val profileBackgroundImageUrlHttps: String?
Link copied to clipboard
val profileBackgroundTile: Boolean
Link copied to clipboard
Link copied to clipboard
val profileBannerUrl: String?
Link copied to clipboard
Link copied to clipboard
val profileImageUrl: String
Link copied to clipboard
val profileImageUrlHttps: String
Link copied to clipboard
val profileInterstitialType: String?
Link copied to clipboard
val profileLinkColor: String
Link copied to clipboard
val profileLocation: JsonElement?
Link copied to clipboard
val profileSidebarBorderColor: String
Link copied to clipboard
val profileSidebarFillColor: String
Link copied to clipboard
val profileTextColor: String
Link copied to clipboard
val profileUseBackgroundImage: Boolean
Link copied to clipboard
val protected: Boolean
Link copied to clipboard
val screenName: String
Link copied to clipboard
val status: Status?
Link copied to clipboard
val statusesCount: Int
Link copied to clipboard
val suspended: Boolean?
Link copied to clipboard
val timeZone: String
Link copied to clipboard
val translatorType: String
Link copied to clipboard
val url: String?
Link copied to clipboard
val utcOffset: Int
Link copied to clipboard
val verified: Boolean
Link copied to clipboard
val withheldInCountries: List<String>
Link copied to clipboard
val withheldScope: String?

Inheritors

Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
fun CommonUser.addToList(listId: Long): EmptyApiAction
fun CommonUser.addToList(slug: String, ownerScreenName: String): EmptyApiAction
fun CommonUser.addToList(slug: String, ownerId: Long): EmptyApiAction

Creates an action to add this user to the list.

Link copied to clipboard
fun CommonUser.block(): JsonObjectApiAction<User>

Creates an action to block this user.

Link copied to clipboard
val CommonUser.createdAt: CreatedAt

Parsed "created_at" object.

Link copied to clipboard
fun CommonUser.follow(): JsonObjectApiAction<User>

Creates an action to follow this user.

Link copied to clipboard
fun CommonUser.followerIds(): CursorJsonObjectApiAction<CursorIds, Long>

Creates an action to retrieve followers' ids of this user.

Link copied to clipboard

Creates an action to retrieve followers' users of this user.

Link copied to clipboard
fun CommonUser.friendIds(): CursorJsonObjectApiAction<CursorIds, Long>

Creates an action to retrieve friends' (follows') ids of this user.

Link copied to clipboard

Creates an action to retrieve friends' (follows') users of this user.

Link copied to clipboard
val CommonUser.isLockedAccount: Boolean

Whether if this account is locked.

Link copied to clipboard
val CommonUser.lang: Language?

Parsed "lang" object.

Link copied to clipboard
fun CommonUser.mute(): JsonObjectApiAction<User>

Creates an action to mute this user.

Link copied to clipboard
fun CommonUser.profileBannerUrlWithVariantSize(size: ProfileBannerSize): String?

Returns profile banner url with specified size.

Link copied to clipboard

Returns profile image url (HTTPS) with specified size.

Link copied to clipboard
fun CommonUser.profileImageUrlWithVariantSize(size: ProfileImageSize): String

Returns profile image url with specified size.

Link copied to clipboard
fun CommonUser.refresh(): JsonObjectApiAction<User>

Creates an action to retrieve this user.

Link copied to clipboard
fun CommonUser.removeFromList(listId: Long): EmptyApiAction
fun CommonUser.removeFromList(slug: String, ownerScreenName: String): EmptyApiAction
fun CommonUser.removeFromList(slug: String, ownerId: Long): EmptyApiAction

Creates an action to remove this user from the list.

Link copied to clipboard
fun CommonUser.reportAsSpam(): JsonObjectApiAction<User>

Creates an action to report this user as spam.

Link copied to clipboard
fun CommonUser.timeline(): JsonArrayApiAction<Status>

Creates an ation to retrieve the user timeline of this user.

Link copied to clipboard
fun CommonUser.unblock(): JsonObjectApiAction<User>

Creates an action to unblock this user.

Link copied to clipboard
fun CommonUser.unfollow(): JsonObjectApiAction<User>

Creates an action to unfollow this user.

Link copied to clipboard
fun CommonUser.unmute(): JsonObjectApiAction<User>

Creates an action to unmute this user.