Room related messages
Create room
Field name | Type | Required | Description |
---|---|---|---|
type |
string | Y | Value must be CreateRoom |
join_request |
boolean | N | User need an approvement from moderator or admin to join the room. Default: false |
name |
string | N | Room name |
description |
string | N | Room description |
access_type |
AccessType | N | Definition for who can access and see the room. Default: 0 |
max_user |
number | N | Maximum number for participants. Use 0 for unlimited participants. Default: 0 |
tags |
[string] | N | Array of tag. |
metas |
[Meta] | N | Array of Meta information. This is room based information and have access level to whom see that information. |
Example requests:
Field name | Type | Nullable | Description |
---|---|---|---|
status |
boolean | N | Value should be true |
type |
string | N | Value must be RoomCreated |
room_id |
string | N | Room's ID |
Example requests:
Join to room
Joining to room require a little more attention than other parts. Room can be configurable based on the owners decitions. It means that, there are couple of parameters and based on parameters, user can be join to room directly or wait in the lobby to be accepted by room owner or moderator.
Field name | Type | Required | Description | Default value |
---|---|---|---|---|
type |
string | Y | Value must be JoinToRoom | |
room_id |
string | Y | Room's ID | |
room_user_type |
RoomUserType | N | User type at the room | 1 |
Example requests:
Field name | Type | Nullable | Description |
---|---|---|---|
status |
boolean | N | Value should be true |
type |
string | N | Value must be Joined |
room_id |
string | N | Room's ID |
room_name |
string | Y | Room's name |
users |
RoomUser | N | Array of RoomUser. |
metas |
[Meta] | N | Array of Meta information. This is room based information and have access level to whom see that information. |
Example requests:
Message objects
AccessType
Who can access the room.
Value | Meaning | Information |
---|---|---|
0 |
Public | The room can be searchable by everyone and anyone can join to room. |
1 |
Private | The room available only with the key |
2 |
Friend | Friends can see and can join to room |
RoomUserType
User's authorization in this room
Value | Meaning |
---|---|
1 |
User |
2 |
Moderator |
3 |
Owner |