4using System.Threading.Tasks;
27 public override string Name =>
"Packages";
38 StringBuilder Markdown =
new StringBuilder();
41 Markdown.AppendLine(
"| File Name | Size | Published | Supersedes | Created | Installed | Signature | Remote Endpoint |");
42 Markdown.AppendLine(
"|:----------|:----:|:---------:|:----------:|:-------:|:---------:|:----------|:----------------|");
46 Markdown.Append(
"| ");
48 Markdown.Append(
" | ");
50 Markdown.Append(
" | ");
52 Markdown.Append(
" | ");
54 Markdown.Append(
" | ");
56 Markdown.Append(
" | ");
61 Markdown.Append(
" | ");
62 Markdown.Append(
"<a href='javascript:window.alert(\"" + (s = Convert.ToBase64String(
Package.
Signature)) +
"\")'>" + s.Substring(0, 10) +
"...</a>");
63 Markdown.Append(
" | ");
65 Markdown.AppendLine(
" |");
68 await ResponseCallback(Markdown.ToString(),
string.Empty);
74 public override string[]
HelpParagraphs =>
new string[] {
"Displays available software packages, and basic information regarding each one, in table form." };
Contains a markdown document. This markdown document class supports original markdown,...
static string Encode(string s)
Encodes all special characters in a string so that it can be included in a markdown document without ...
Static class managing data export.
static string FormatBytes(double Bytes)
Formats a file size using appropriate unit.
An administrative command with no parameters.
Returns a list of available software packages.
override string Name
Command name
Packages()
Returns a list of available software packages.
override async Task Execute(ChatState State, string[] Arguments, string OrgMessage, ResponseCallbackHandler ResponseCallback)
Executes the command.
override string[] HelpParagraphs
Markdown description of syntax.
Provisioning and registry service component.
Contains information about a software package.
byte[] Signature
Cryptographic signature of package, as calculated by the issuer of the package.
DateTime Installed
When package was installed (if installed).
CaseInsensitiveString FileName
Filename of package.
DateTime Published
When package was published.
long Bytes
Number of bytes of package.
DateTime Supersedes
Timestamp of superceded package.
string RemoteEndpoint
Remote Endpoint from where the package was downloaded or uploaded.
DateTime Created
When package record was created
Service Module hosting the XMPP broker and its components.
delegate Task< string > ResponseCallbackHandler(string Markdown, string MessageId)
Delegate for response callback handler methods.