protected override void Execute(object parameter) { var userId = parameter as string; var screenName = _nicoVideoOwnerRepository.Get(userId)?.ScreenName; _commentFiltering.AddFilteringCommentOwnerId(userId, screenName); }
public void Migration() { if (!_appFlagsRepository.IsMigratedCommentFilterSettings_V_0_21_5) { //_playerSettings.NGCommentScore; //_playerSettings.CommentGlassMowerEnable; //_playerSettings.FilteringCommands; //_playerSettings.NGCommentKeywords; // NG User Id _commentFiltering.IsEnableFilteringCommentOwnerId = _playerSettings.NGCommentUserIdEnable; foreach (var ngCommentUserId in _playerSettings.NGCommentUserIds) { _commentFiltering.AddFilteringCommentOwnerId(ngCommentUserId.UserId, string.Empty); } // NG Comment Text _commentFiltering.IsEnableFilteringCommentText = _playerSettings.NGCommentKeywordEnable; foreach (var ngText in _playerSettings.NGCommentKeywords) { _commentFiltering.AddFilteringCommentTextKeyword(ngText.Keyword); } // Glass Mower と centerコマンドのNG は // 移行としてではなく初期化として追加してます _appFlagsRepository.IsMigratedCommentFilterSettings_V_0_21_5 = true; } }