LoggedUser

io.github.pidoveproject.showdown.user.LoggedUser
case class LoggedUser(name: Username, avatar: AvatarName, isGuest: Boolean, settings: UserSettings, privateMessages: Map[User, RoomChat], challenges: Map[User, FormatName])

Represent a logged-in user. Typically the current user when connecting to Showdown.

Value parameters

avatar

the avatar representing this user

isGuest

whether this user is a guest or has a registered account

name

the name of the user

settings

this user's settings

Attributes

Source
LoggedUser.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def getChallenge(opponent: User): Option[FormatName]

Attributes

Source
LoggedUser.scala

Attributes

Source
LoggedUser.scala
def removeChallenge(opponent: User): LoggedUser

Attributes

Source
LoggedUser.scala
def withChallenge(opponent: User, format: FormatName): LoggedUser

Attributes

Source
LoggedUser.scala

Attributes

Source
LoggedUser.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product