User

class User

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

Constructors

Link copied to clipboard
fun User(userId: Long)

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

Link copied to clipboard
fun User(username: String)

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

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
fun getFriends(): List<User>

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

Link copied to clipboard
fun getGroups(): List<Group>

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

Properties

Link copied to clipboard
val description: String
Link copied to clipboard
val displayName: String
Link copied to clipboard
val id: Long
Link copied to clipboard
val name: String