Bentrix Docs
HomePricingDashboard

Java: room

Every method of client.room in the Java SDK.

hand#

Raise or lower the hand · tool room_hand

scope: roomsplan: freesince 3.8.0

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

NameTypeWhat it is
upbooleanrequired

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

scope: roomsplan: freesince 3.8.0

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

NameTypeWhat it is
emailStringoptionalOr 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.
usernameStringoptionalThe 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

scope: roomsplan: freesince 3.13.0

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

NameTypeWhat it is
emailStringrequiredThe 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

scope: roomsplan: freesince 3.8.0

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

scope: roomsplan: freesince 3.8.0

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

NameTypeWhat it is
nameStringrequiredThe room's name, 1 to 60 characters.
presetStringrequiredFollow, discussion or team_trading.
retentionStringrequiredHow long its messages are kept: days7, days30, days365 or kept. Chosen, never assumed.
attestsbooleanrequiredThe person's acceptance that every room refuses broker links, asking members for their accounts and selling access elsewhere. Must be true.
energyPayerStringoptionalWhose 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

scope: roomsplan: freesince 3.8.0

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

NameTypeWhat it is
roomStringrequiredThe 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

scope: roomsplan: freesince 3.11.0

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

NameTypeWhat it is
modelStringrequiredThe model's name, as its output names it.
outputStringrequiredThe output's name within that model.
shownbooleanrequiredtrue: 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

scope: roomsplan: freesince 3.8.0

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

NameTypeWhat it is
limitlongoptionalAt 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

scope: roomsplan: freesince 3.8.0

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

NameTypeWhat it is
textStringrequiredThe 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("…"))

share#

Share the workbench in front · tool room_share

scope: roomsplan: freesince 3.8.0

Shares the workbench in front with the room in front, as its creator's Share does: its clock, its charts and their setups are published, never a bar, an order or money; each member's own Bentrix makes the same workbench over its own data.

Declaration

client.room
public Object share()

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.share()

Bentrix 0.1.382Every number, name and default on these pages is read from the application itself.What is comingWhat changed