Exemplo n.º 1
0
        public override void DisplayNewToast(IChatState chatState, IManageToasts toastsManager)
        {
            var settings = chatState.GetChannelSettingsById(TargetChannelId);
            if (settings == null) return;

            var setting = new ChannelSettingPair(settings.JoinLeaveNotifyLevel,
                settings.JoinLeaveNotifyOnlyForInteresting);
            DoToast(setting, toastsManager, chatState);
        }
Exemplo n.º 2
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);
            }
        }
Exemplo n.º 3
0
        public override void DisplayNewToast(IChatState chatState, IManageToasts toastsManager)
        {
            var settings = chatState.GetChannelSettingsById(TargetChannelId);

            if (settings == null)
            {
                return;
            }

            var setting = new ChannelSettingPair(settings.PromoteDemoteNotifyLevel,
                                                 settings.PromoteDemoteNotifyOnlyForInteresting);

            DoToast(setting, toastsManager, chatState);
        }
Exemplo n.º 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);
        }