JoinedRoom

io.github.pidoveproject.showdown.room.JoinedRoom
See theJoinedRoom companion object
case class JoinedRoom(id: RoomId, title: Option[String], roomType: Option[RoomType], currentTime: Timestamp, users: Set[User], chat: RoomChat, battle: Option[Battle])

A showdown room.

Value parameters

id

this room's id

messages

the 100 last messages of this room

roomType

this room's type, whether chat or battle

users

the users connected to this room

Attributes

Companion
object
Source
JoinedRoom.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Update this room according to the passed server event/message.

Update this room according to the passed server event/message.

Value parameters

message

the message sent by the server

Attributes

Returns

a new JoinedRoom updated according to the given message

Source
JoinedRoom.scala

Attributes

Source
JoinedRoom.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product