@cbnsndwch/zero-sources

IRoomBase interface

Home > @cbnsndwch/zrocket-contracts > IRoomBase

IRoomBase interface

A base data contract for room entities.

Signature:

interface IRoomBase<TType extends RoomType = RoomType> extends IEntityBase

Extends: IEntityBase

Properties

Property

Modifiers

Type

Description

lastMessage?

IMessageBase

(Optional) The last message sent in the room.

lastMessageAt?

Date

(Optional) The timestamp of the last message sent in the room.

memberIds

string[]

The IDs of the users in the room.

messageCount

number

The total number of messages in the room.

systemMessages?

SystemMessageType[]

(Optional) The message types that should be treated as system messages for this room.

t

TType

The type of the room.

usernames

string[]

The usernames of the users in the room

How was this page?