User

class User

A class which represents a User which is not authenticated by the dev.roava.client.RoavaClient.

Constructors

Link copied to clipboard
constructor(userId: Long)

Creates a new User object provided the user ID of the User.

constructor(username: String)

Creates a new User object provided the username of the User.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: Long
Link copied to clipboard

Functions

Link copied to clipboard
fun getAvatar(size: String, isCircular: Boolean): String

Method to get a User's Avatar

Link copied to clipboard
fun getBust(size: String, isCircular: Boolean): String

Method to get a User's Bust

Link copied to clipboard

Method to get the User's current friends represented as a List of individual Users

Link copied to clipboard

Method to get the User's current groups represented as a List of individual dev.roava.group.Groups

Link copied to clipboard
fun getHeadShot(size: String, isCircular: Boolean): String

Method to get a User's Headshot

Link copied to clipboard
fun hasGamepass(gamepassId: Long): Boolean

Method to get if a User has a gamepass

Link copied to clipboard
fun isInGroup(groupId: Int): Boolean

Method to get if a User is in a group