Bentrix Docs
HomePricingDashboard

C#: room

Every method of client.Room in the C# 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 Task<JsonNode?> Hand(bool up, CancellationToken ct = default)

Parameters

NameTypeWhat it is
upboolrequired

Returns

Task<JsonNode?> — the tool’s answer as a JsonNode.

What it answers

What the tool's description says.

Example

await client.Room.Hand(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 Task<JsonNode?> Invite(string? email = null, string? username = null, CancellationToken ct = default)

Parameters

NameTypeWhat it is
emailstring?optionalOr 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.
usernamestring?optionalThe person's username. No link and no code exist: a room invites a person by name.

Returns

Task<JsonNode?> — the tool’s answer as a JsonNode.

What it answers

What the tool's description says.

Example

await client.Room.Invite()

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 Task<JsonNode?> InviteWithdraw(string email, CancellationToken ct = default)

Parameters

NameTypeWhat it is
emailstringrequiredThe address invited by email, as room_read's invited lists it.

Returns

Task<JsonNode?> — the tool’s answer as a JsonNode.

What it answers

What the tool's description says.

Example

await client.Room.InviteWithdraw("…")

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 Task<JsonNode?> List(CancellationToken ct = default)

It takes no arguments.

Returns

Task<JsonNode?> — the tool’s answer as a JsonNode.

What it answers

What the tool's description says.

Example

await 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 Task<JsonNode?> Make(string name, string preset, string retention, bool attests, string? energyPayer = null, CancellationToken ct = default)

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.
attestsboolrequiredThe person's acceptance that every room refuses broker links, asking members for their accounts and selling access elsewhere. Must be true.
energyPayerstring?optionalWhose wallet pays its Energy: creator (the default) or members.

Returns

Task<JsonNode?> — the tool’s answer as a JsonNode.

What it answers

What the tool's description says.

Example

await client.Room.Make("…", "…", "…", 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 Task<JsonNode?> Open(string room, CancellationToken ct = default)

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

Task<JsonNode?> — the tool’s answer as a JsonNode.

What it answers

What the tool's description says.

Example

await client.Room.Open("…")

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 Task<JsonNode?> OutputShown(string model, string output, bool shown, CancellationToken ct = default)

Parameters

NameTypeWhat it is
modelstringrequiredThe model's name, as its output names it.
outputstringrequiredThe output's name within that model.
shownboolrequiredtrue: the room sees it; false: it is kept from the room.

Returns

Task<JsonNode?> — the tool’s answer as a JsonNode.

What it answers

Answers what the room now carries.

Example

await client.Room.OutputShown("…", "…", 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 Task<JsonNode?> Read(long? limit = null, CancellationToken ct = default)

Parameters

NameTypeWhat it is
limitlong?optionalAt most this many of the newest messages (default 50).

Returns

Task<JsonNode?> — the tool’s answer as a JsonNode.

What it answers

What the tool's description says.

Example

await client.Room.Read()

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 Task<JsonNode?> Say(string text, CancellationToken ct = default)

Parameters

NameTypeWhat it is
textstringrequiredThe message, at most 4 KB of plain text.

Returns

Task<JsonNode?> — the tool’s answer as a JsonNode.

What it answers

What the tool's description says.

Example

await client.Room.Say("…")

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 Task<JsonNode?> Share(CancellationToken ct = default)

It takes no arguments.

Returns

Task<JsonNode?> — the tool’s answer as a JsonNode.

What it answers

What the tool's description says.

Example

await client.Room.Share()

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