Exemple #1
0
            internal override void Execute(IMOTDBridge app)
            {
                logger.Info($"Got a notification the server, hasLink={HasLink}");

                if (HasLink)
                {
                    app.DisplayNotification(text, link, uri);
                }
                else
                {
                    app.DisplayNotification(text);
                }
            }
Exemple #2
0
 internal override void Execute(IMOTDBridge app)
 {
     logger.Error("The server has returned an error: " + text);
 }
Exemple #3
0
 internal override void Execute(IMOTDBridge app)
 {
     logger.Info("The server has nothing interesting to say.");
 }
Exemple #4
0
 internal abstract void Execute(IMOTDBridge app);
Exemple #5
0
 public MOTDClient(string serverUri, IMOTDBridge app)
 {
     this.serverUri = serverUri;
     this.app       = app;
 }
Exemple #6
0
 internal override void Execute(IMOTDBridge app)
 {
     logger.Info("Got a popup from the server");
     app.DisplayPopup(title, url, width, height);
 }