コード例 #1
0
ファイル: StatusCommand.cs プロジェクト: ZornTaov/slimCat
            public override void DisplayNewToast(IChatState chatState, IManageToasts toastsManager)
            {
                if (!ApplicationSettings.ShowStatusToasts
                    || !chatState.IsInteresting(Model.TargetCharacter.Name)
                    || chatState.CharacterManager.IsOnList(Model.TargetCharacter.Name, ListKind.IgnoreUpdates, false))
                {
                    return;
                }

                DoNormalToast(toastsManager);
            }
コード例 #2
0
ファイル: LogInCommand.cs プロジェクト: tecknojock/slimCat
        public override void DisplayNewToast(IChatState chatState, IManageToasts toastsManager)
        {
            if (!ApplicationSettings.ShowLoginToasts ||
                !chatState.IsInteresting(Model.TargetCharacter.Name) ||
                chatState.CharacterManager.IsOnList(Model.TargetCharacter.Name, ListKind.IgnoreUpdates, false))
            {
                return;
            }

            DoNormalToast(toastsManager);
        }
コード例 #3
0
        internal void DoToast(ChannelSettingPair setting, IManageToasts toastManager, IChatState chatState)
        {
            if (setting.OnlyForInteresting && !chatState.IsInteresting(Model.TargetCharacter.Name))
            {
                return;
            }

            toastManager.NotifyWithSettings(Model, setting.NotifyLevel);

            if (setting.NotifyLevel >= ChannelSettingsModel.NotifyLevel.NotificationAndToast)
            {
                SetToastData(toastManager.Toast);
            }
        }
コード例 #4
0
        internal void DoToast(ChannelSettingPair setting, IManageToasts toastManager, IChatState chatState)
        {
            if (setting.OnlyForInteresting && !chatState.IsInteresting(Model.TargetCharacter.Name)) return;

            toastManager.NotifyWithSettings(Model, setting.NotifyLevel);

            if (setting.NotifyLevel >= ChannelSettingsModel.NotifyLevel.NotificationAndToast)
                SetToastData(toastManager.Toast);
        }