RoomChat

io.github.pidoveproject.showdown.room.RoomChat
See theRoomChat companion object
case class RoomChat(messages: IronType[List[ChatMessage], MaxLength[100]])

Attributes

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

Members list

Value members

Concrete methods

def update(message: RoomMessage): RoomChat

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

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

Value parameters

message

the message sent by the server

Attributes

Returns

a new RoomChat updated according to the given message

Source
RoomChat.scala

Add a chat message.

Add a chat message.

Value parameters

message

the message to add

Attributes

Returns

a new room chat containing the given message

Note

if this chat already has 100 messages, the returned copy will not contain the oldest one

Source
RoomChat.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product