2using System.Collections.Generic;
3using System.Threading.Tasks;
15 [Page(1,
"Time", 150)]
17 [ToolTip(3,
"Search for records from this point in time.")]
18 public DateTime From = DateTime.MinValue;
20 [Page(1,
"Time", 150)]
22 [ToolTip(5,
"Search for records to this point in time.")]
23 public DateTime To = DateTime.MaxValue;
51 throw new NotSupportedException();
56 return Task.FromResult(
string.Empty);
61 return Task.FromResult(
string.Empty);
66 return Task.FromResult(
string.Empty);
72 return Task.CompletedTask;
82 if (this.To < this.From)
84 DateTime Temp = this.To;
89 List<Filter> Filters =
new List<Filter>();
90 IEnumerable<XmppStatistic> Records;
92 if (this.From > DateTime.MinValue)
95 if (this.To < DateTime.MaxValue)
100 switch (Filters.Count)
103 Records = await
Database.
Find<XmppStatistic>(
"Timestamp");
107 Records = await
Database.
Find<XmppStatistic>(Filters[0],
"Timestamp");
131 foreach (XmppStatistic Rec
in Records)
Static interface for database persistence. In order to work, a database provider has to be assigned t...
static Task< IEnumerable< object > > Find(string Collection, params string[] SortOrder)
Finds objects in a given collection.
This filter selects objects that conform to all child-filters provided.
This filter selects objects that have a named field greater or equal to a given value.
This filter selects objects that have a named field lesser or equal to a given value.
Contains information about a language.
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 ...
Task< string > GetConfirmationStringAsync(Language Language)
Gets a confirmation string, if any, of the command. If no confirmation is necessary,...
Task< bool > CanExecuteAsync(RequestOrigin Caller)
If the command can be executed by the caller.
ICommand Copy()
Creates a copy of the command object.
Task ExecuteCommandAsync()
Executes the command.
Task< string > GetSuccessStringAsync(Language Language)
Gets a success string, if any, of the command. If no specific success string is available,...
CommandType Type
Type of command.
string CommandID
ID of command.
Task< string > GetNameAsync(Language Language)
Gets the name of data source.
Task< string > GetFailureStringAsync(Language Language)
Gets a failure string, if any, of the command. If no specific failure string is available,...
Task StartQueryExecutionAsync(Query Query, Language Language)
Starts the execution of a query.
string SortCategory
Sort Category, if available.
string SortKey
Sort Key, if available.
Service Module hosting the XMPP broker and its components.
Defines a column in a table.
Class handling the reception of data from a query.
Task TableDone(string TableId)
Reports a table as being complete.
Task EndSection()
Ends a section. Each call to BeginSection(string) must be followed by a call to EndSection().
Task Start()
Starts query execution.
Task NewRecords(string TableId, params Record[] Records)
Reports a new set of records in a table.
Task BeginSection(string Header)
Begins a new section. Sections can be nested. Each call to BeginSection(string) must be followed by a...
Task NewTable(string TableId, string TableName, params Column[] Columns)
Defines a new table in the query output.
Task LogMessage(Exception Exception)
Logs an Exception as a query message.
async Task Done()
Query execution completed.
Task SetStatus(string Status)
Sets the current status of the query execution.
Task SetTitle(string Title)
Sets the title of the report.
Defines a record in a table.
Tokens available in request.
string From
Address of caller.
ColumnAlignment
Column alignment.