2using System.Threading.Tasks;
23 public override string Name =>
"Check";
35 await
XmppServerModule.SendErrorMessage(
"No software update service available on parent server.",
string.Empty, ResponseCallback);
38 string MessageId = await ResponseCallback(
"Subscribing to all software packages.",
string.Empty);
43 await ResponseCallback(
"Checking server for new software packages.", MessageId);
47 if (await
XmppServerModule.Instance.CheckSoftwarePackage(Package, ResponseCallback))
56 await ResponseCallback(
"No new software packages available.", MessageId);
60 await ResponseCallback(
"1 new software package downloaded.", MessageId);
64 await ResponseCallback(NrUpdated.ToString() +
" new software packages downloaded.", MessageId);
73 public override string[]
HelpParagraphs =>
new string[] {
"Checks for new software packages." };
Static class managing the runtime environment of the IoT Gateway.
static SoftwareUpdateClient SoftwareUpdateClient
XMPP Software Updates Client, if such a compoent is available on the XMPP broker.
Static class managing persistent settings.
static async Task< bool > SetAsync(string Key, string Value)
Sets a string-valued setting.
An administrative command with no parameters.
Checks if new software packages are available.
override async Task Execute(ChatState State, string[] Arguments, string OrgMessage, ResponseCallbackHandler ResponseCallback)
Executes the command.
override string Name
Command name
Check()
Checks if new software packages are available.
override string[] HelpParagraphs
Markdown description of syntax.
Service Module hosting the XMPP broker and its components.
delegate Task< string > ResponseCallbackHandler(string Markdown, string MessageId)
Delegate for response callback handler methods.