Example #1
0
            void ICommonInterface.Alert(string type, string contents)
            {
                MessageType messageType = type switch {
                    "error" => MessageType.Error,
                    "warning" => MessageType.Warning,
                    "info" => MessageType.Error,
                    _ => MessageType.Other
                };

                MessageDialogs.Show(messageType, "TweetDuck Browser Message", contents);
            }

            void ICommonInterface.DisplayTooltip(string?text)
            {
                throw new NotSupportedException();
            }

            void ICommonInterface.FixClipboard()
            {
            }

            int ICommonInterface.GetIdleSeconds()
            {
                return(0);
            }

            void ICommonInterface.OnSoundNotification()
            {
                throw new NotSupportedException();
            }

            void ICommonInterface.PlayVideo(string videoUrl, string tweetUrl, string username, object callShowOverlay)
            {
                App.SystemHandler.OpenBrowser(videoUrl);
            }

            void ICommonInterface.ScreenshotTweet(string html, int width)
            {
                throw new NotSupportedException();
            }

            void ICommonInterface.ShowDesktopNotification(DesktopNotification notification)
            {
                throw new NotSupportedException();
            }

            void ICommonInterface.StopVideo()
            {
                throw new NotSupportedException();
            }

            void ITweetDeckInterface.OnIntroductionClosed(bool showGuide)
            {
                throw new NotSupportedException();
            }

            void ITweetDeckInterface.OpenContextMenu()
            {
                throw new NotSupportedException();
            }

            void ITweetDeckInterface.OpenProfileImport()
            {
                throw new NotSupportedException();
            }

            Task ICommonInterface.ExecuteCallback(object callback, params object[] parameters)
            {
                throw new NotSupportedException();
            }
        }