Пример #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);
                }
            }
Пример #2
0
 internal override void Execute(IMOTDBridge app)
 {
     logger.Error("The server has returned an error: " + text);
 }
Пример #3
0
 internal override void Execute(IMOTDBridge app)
 {
     logger.Info("The server has nothing interesting to say.");
 }
Пример #4
0
 internal abstract void Execute(IMOTDBridge app);
Пример #5
0
 public MOTDClient(string serverUri, IMOTDBridge app)
 {
     this.serverUri = serverUri;
     this.app       = app;
 }
Пример #6
0
 internal override void Execute(IMOTDBridge app)
 {
     logger.Info("Got a popup from the server");
     app.DisplayPopup(title, url, width, height);
 }