Every method of client.room in the Java SDK.
hand#
Raise or lower the hand · tool room_hand
Raises the person's hand in the room in front, or lowers it; every member sees it beside the username.
Declaration
client.room
public Object hand(HandArgs args)Parameters
| Name | Type | What it is | |
|---|---|---|---|
up | boolean | required |
Returns
Object — the tool’s answer as maps and lists.
What it answers
What the tool's description says.
Example
client.room.hand(new Bentrix.RoomApi.HandArgs(true))invite#
Invite to the room in front · tool room_invite
Invites a person to the room in front, as its creator's Invite… does — by username, or by the email address they sign in with (one of the two). By username the answer is invited or no account by that name; by email it is the same for every address (whether a message went to it), and the address stays in the creator's list until the person joins. The answer lands a moment later (room_read).
Declaration
client.room
public Object invite(InviteArgs args)Parameters
| Name | Type | What it is | |
|---|---|---|---|
email | String | optional | Or the email address the person signs in with. The answer is the same whether or not an account uses it; the room waits in that person's list when they sign in with it. |
username | String | optional | The person's username. No link and no code exist: a room invites a person by name. |
Returns
Object — the tool’s answer as maps and lists.
What it answers
What the tool's description says.
Example
client.room.invite(new Bentrix.RoomApi.InviteArgs())inviteWithdraw#
Take back an invitation by email · tool room_invite_withdraw
Takes back an invitation by email to the room in front, as the Withdraw beside the address in its creator's Invite… sheet does: the room leaves that person's list. The creator's alone; the list lands a moment later (room_read's invited).
Declaration
client.room
public Object inviteWithdraw(InviteWithdrawArgs args)Parameters
| Name | Type | What it is | |
|---|---|---|---|
email | String | required | The address invited by email, as room_read's invited lists it. |
Returns
Object — the tool’s answer as maps and lists.
What it answers
What the tool's description says.
Example
client.room.inviteWithdraw(new Bentrix.RoomApi.InviteWithdrawArgs("…"))list#
List my rooms · tool room_list
The rooms the person is invited to or a member of, as the Rooms area lists them — name, what each is for, whether invited, its members and unread messages — and asks the rooms service for the list again (what it answers lands a moment later; call again).
Declaration
client.room
public Object list()It takes no arguments.
Returns
Object — the tool’s answer as maps and lists.
What it answers
What the tool's description says.
Example
client.room.list()make#
Make a room · tool room_make
Makes a room as the Make a room… sheet does — a name, what it is for, how long it keeps its messages (no default), whose wallet pays its Energy, and the person's acceptance of what every room refuses — and opens it. Making a room needs the account's package (Pro; the beta's own switch gives it).
Declaration
client.room
public Object make(MakeArgs args)Parameters
| Name | Type | What it is | |
|---|---|---|---|
name | String | required | The room's name, 1 to 60 characters. |
preset | String | required | Follow, discussion or team_trading. |
retention | String | required | How long its messages are kept: days7, days30, days365 or kept. Chosen, never assumed. |
attests | boolean | required | The person's acceptance that every room refuses broker links, asking members for their accounts and selling access elsewhere. Must be true. |
energyPayer | String | optional | Whose wallet pays its Energy: creator (the default) or members. |
Returns
Object — the tool’s answer as maps and lists.
What it answers
What the tool's description says.
Example
client.room.make(new Bentrix.RoomApi.MakeArgs("…", "…", "…", true))open#
Open a room · tool room_open
Opens a room the person is a member of, or a market's public symbol room (sym:<CORE>), as a press on its row does: its socket connects and its chat, members and shared workbench land a moment later (room_read).
Declaration
client.room
public Object open(OpenArgs args)Parameters
| Name | Type | What it is | |
|---|---|---|---|
room | String | required | The room's id from room_list, or sym:<CORE> for a market's public symbol room (EURUSD for EURUSD_i). |
Returns
Object — the tool’s answer as maps and lists.
What it answers
What the tool's description says.
Example
client.room.open(new Bentrix.RoomApi.OpenArgs("…"))outputShown#
Show a model's output to the room, or keep it from it · tool room_output_shown
The room creator's choice of what the room in front carries of the models' outputs on the shared laboratory workbench, as the room's output chips do: every output but text is shown by default, and one kept back reaches no member, whoever leads. Answers what the room now carries.
Declaration
client.room
public Object outputShown(OutputShownArgs args)Parameters
| Name | Type | What it is | |
|---|---|---|---|
model | String | required | The model's name, as its output names it. |
output | String | required | The output's name within that model. |
shown | boolean | required | true: the room sees it; false: it is kept from the room. |
Returns
Object — the tool’s answer as maps and lists.
What it answers
Answers what the room now carries.
Example
client.room.outputShown(new Bentrix.RoomApi.OutputShownArgs("…", "…", true))read#
Read the room in front · tool room_read
The room in front: its name, what it is for, the person's place in it, its members (username only, present, hand), the addresses its creator invited by email and nobody has joined from yet (invited, the creator's alone), its newest messages (who, when, text, whether an agent wrote it), whether its socket is connected and whether the person follows the room's clock.
Declaration
client.room
public Object read(ReadArgs args)Parameters
| Name | Type | What it is | |
|---|---|---|---|
limit | long | optional | At most this many of the newest messages (default 50). |
Returns
Object — the tool’s answer as maps and lists.
What it answers
What the tool's description says.
Example
client.room.read(new Bentrix.RoomApi.ReadArgs())say#
Write in the room in front · tool room_say
Writes a message in the room in front, carrying the agent mark every member sees. Every room refuses broker links, referral links and codes before a message is posted (and a symbol room any link and messaging handle); a refusal lands as the room's refused (room_read).
Declaration
client.room
public Object say(SayArgs args)Parameters
| Name | Type | What it is | |
|---|---|---|---|
text | String | required | The message, at most 4 KB of plain text. |
Returns
Object — the tool’s answer as maps and lists.
What it answers
What the tool's description says.
Example
client.room.say(new Bentrix.RoomApi.SayArgs("…"))