2using System.Threading.Tasks;
23 public override string Name =>
"Rooms";
30 "Lists rooms currently entered by the Neuron."
44 await ResponseCallback(
"Multi-User Chat disabled.",
string.Empty);
50 if (
Rooms?.Length == 0)
52 await ResponseCallback(
"No rooms entered.",
string.Empty);
56 StringBuilder Response =
new StringBuilder();
58 Response.AppendLine(
"| Rooms ||||");
59 Response.AppendLine(
"| Nick-name | Room | Domain | Type |");
60 Response.AppendLine(
"|:----|:----|:----|:----|");
64 Response.Append(
"| `");
66 Response.Append(
"` | `");
67 Response.Append(Room.
RoomId);
68 Response.Append(
"` | `");
69 Response.Append(Room.
Domain);
70 Response.Append(
"` | ");
73 Response.Append(
"Permanent");
75 Response.Append(
"Temporary");
77 Response.AppendLine(
" |");
80 await ResponseCallback(Response.ToString(),
string.Empty);
Static class managing the runtime environment of the IoT Gateway.
static MultiUserChatClient MucClient
XMPP Multi-User Chat Protocol (MUC) Client.
An administrative command with no parameters.
Multi-User Chat Room information
string NickName
Nick-name to use in room.
bool Permanent
If room association should be persisted.
Lists rooms currently entered by the neuron.
override string Name
Command name
override string[] HelpParagraphs
Markdown description of syntax.
override async Task Execute(ChatState State, string[] Arguments, string OrgMessage, ResponseCallbackHandler ResponseCallback)
Executes the command.
Rooms()
Lists rooms currently entered by the neuron.
Service Module hosting the XMPP broker and its components.
delegate Task< string > ResponseCallbackHandler(string Markdown, string MessageId)
Delegate for response callback handler methods.