ChatMessage

io.github.pidoveproject.showdown.room.ChatMessage

A chat message.

Attributes

Source
ChatMessage.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 Challenge(opponent: User, format: FormatName)

A challenge request.

A challenge request.

Value parameters

format

the format of the battle

opponent

the opponent from the point of view of the current user

Attributes

Source
ChatMessage.scala
final case class Html(content: HTML)

An HTML message sent by the server.

An HTML message sent by the server.

Value parameters

content

the content of the message encoded in HTML

Attributes

Source
ChatMessage.scala
final case class Join(user: User)

A join message.

A join message.

Value parameters

user

the user who joined the room

Attributes

Source
ChatMessage.scala
final case class Leave(user: User)

A leave message.

A leave message.

Value parameters

user

the user who left the room

Attributes

Source
ChatMessage.scala
final case class Sent(sender: User, content: ChatContent)

A message sent by a user.

A message sent by a user.

Value parameters

content

the content of the message

sender

the message sender

Attributes

Source
ChatMessage.scala
final case class Server(content: ChatContent)

A message sent by the server.

A message sent by the server.

Value parameters

content

the content of the message

Attributes

Source
ChatMessage.scala
final case class UHtml(name: String, content: HTML)

A named HTML message sent by the server.

A named HTML message sent by the server.

Value parameters

content

the content of the message

name

the id of the message, used for updating

Attributes

Source
ChatMessage.scala