GlobalMessage

io.github.pidoveproject.showdown.protocol.server.GlobalMessage

A message that can be sent from the server anywhere.

Attributes

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

Members list

Type members

Enum entries

final case class ChallStr(content: ChallStr)

The server sent a token used to login.

The server sent a token used to login.

Value parameters

content

the challstr (token)

Attributes

Source
GlobalMessage.scala
final case class Formats(categories: List[FormatCategory])

The list of all formats and categories

The list of all formats and categories

Value parameters

categories

a list of format category, containing formats

Attributes

Source
GlobalMessage.scala
final case class NameTaken(name: String, reason: String)

The current user's name cannot be changed to name.

The current user's name cannot be changed to name.

Value parameters

name

the name the current user tried to take

reason

the reason of the failure

Attributes

Source
GlobalMessage.scala
final case class Popup(msg: PopupMessage)

A popup message. Used in scenarios like team validation.

A popup message. Used in scenarios like team validation.

Value parameters

msg

the message displayed by this popup

Attributes

Source
GlobalMessage.scala
final case class PrivateMessage(sender: User, receiver: User, message: ChatContent)

A private message (PM) sent by either the server or another player.

A private message (PM) sent by either the server or another player.

Value parameters

message

the content of this PM

receiver

the user who received this PM

sender

the user who sent this PM

Attributes

Source
GlobalMessage.scala
final case class QueryResponse(content: ResponseContent)

The response of a previously sent query.

The response of a previously sent query.

Value parameters

content

the content of the query response

Attributes

Source
GlobalMessage.scala
final case class UpdateSearch(search: GameSearch)

An update about the matchmaking.

An update about the matchmaking.

Value parameters

search

the current state of game searching

Attributes

Source
GlobalMessage.scala
final case class UpdateUser(user: User, named: Boolean, avatar: AvatarName, settings: UserSettings)

An update about a user. Usually the one currently logged in.

An update about a user. Usually the one currently logged in.

Value parameters

avatar

the name of the avatar of this user

named

whether this user has a name or is guest

settings

various settings of the user

user

the updated user

Attributes

Source
GlobalMessage.scala
final case class UserCount(count: Count)

An update of the number of users on the server

An update of the number of users on the server

Value parameters

count

the number of users on the server

Attributes

Source
GlobalMessage.scala