Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
XmppProtocol.cs
2using System.Threading.Tasks;
5using Waher.Things;
8using Waher.Reports;
9
11{
13 {
14 private readonly XmppServer server;
15
17 : base("XMPP", Parent)
18 {
19 this.server = Server;
20 }
21
22 public override async Task<IEnumerable<Parameter>> GetDisplayableParametersAsync(Language Language, RequestOrigin Caller)
23 {
24 LinkedList<Parameter> Parameters = new LinkedList<Parameter>();
25
26 Parameters.AddLast(new StringParameter("XmppPorts", await Language.GetStringAsync(typeof(XmppServerModule), 6, "C2S Ports"), HttpProtocol.PortsToString(this.server.OpenC2SPorts)));
27 Parameters.AddLast(new StringParameter("XmppsPorts", await Language.GetStringAsync(typeof(XmppServerModule), 7, "S2S Ports"), HttpProtocol.PortsToString(this.server.OpenS2SPorts)));
28
29 return Parameters;
30 }
31
37 public override Task<ExecuteReport> GetExecuteCommand()
38 {
39 return Task.FromResult<ExecuteReport>(new XmppStatisticsCommand(this));
40 }
41 }
42}
Abstract base class for commands executing a report.
INode Parent
Parent Node, or null if a root node.
Definition: ReportNode.cs:107
Contains information about a language.
Definition: Language.cs:17
Task< string > GetStringAsync(Type Type, int Id, string Default)
Gets the string value of a string ID. If no such string exists, a string is created with the default ...
Definition: Language.cs:209
override Task< ExecuteReport > GetExecuteCommand()
Gets the command object to execute a report. If null is returned, the report node is just a group pla...
Definition: XmppProtocol.cs:37
override async Task< IEnumerable< Parameter > > GetDisplayableParametersAsync(Language Language, RequestOrigin Caller)
Gets displayable parameters.
Definition: XmppProtocol.cs:22
Abstract base class for server report nodes, requiring admin privileges to be seen and executed.
Service Module hosting the XMPP broker and its components.
Tokens available in request.
Definition: RequestOrigin.cs:9