Exemple #1
0
            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);
            }
Exemple #2
0
        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);
        }
        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);
            }
        }
        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);
        }