public PlaylistService(
            IGetSongRequestByIdQuery getSongRequestByIdQuery,
            IGetPlaylistStateQuery getPlaylistStateQuery,
            IAddSongRequestCommand addSongRequestCommand,
            IPromoteRequestCommand promoteRequestCommand,
            IArchiveRequestCommand archiveRequestCommand,
            IRemoveAndRefundAllRequestsCommand removeAndRefundAllRequestsCommand,
            IGetCurrentRequestsQuery getCurrentRequestsQuery,
            IIsSuperVipInQueueQuery isSuperVipInQueueQuery,
            IGetUsersFormattedRequestsQuery getUsersFormattedRequestsQuery,
            IUpdatePlaylistStateCommand updatePlaylistStateCommand,
            IAddSongToDriveCommand addSongToDriveCommand,
            IGetMaxRegularRequestCountQuery getMaxRegularRequestCountQuery,
            IEditSuperVipCommand editSuperVipCommand,
            IRemoveSuperVipCommand removeSuperVipCommand,
            IGetUsersCurrentRequestCountsQuery getUsersCurrentRequestCountsQuery,
            IRemoveUsersRequestByPlaylistIndexCommand removeUsersRequestByPlaylistIndexCommand,
            IArchiveUsersSingleRequestCommand archiveUsersSingleRequestCommand,
            IGetSingleSongRequestIdRepository getSingleSongRequestIdRepository,
            IGetUsersRequestAtPlaylistIndexQuery getUsersRequestAtPlaylistIndexQuery,
            IEditRequestCommand editRequestCommand,
            IGetTopTenRequestsQuery getTopTenRequestsQuery,
            ISecretService secretService,
            IConfigService configService,
            ISignalRService signalRService,
            IRefundVipCommand refundVipCommand
            )
        {
            _getSongRequestByIdQuery           = getSongRequestByIdQuery;
            _getPlaylistStateQuery             = getPlaylistStateQuery;
            _addSongRequestCommand             = addSongRequestCommand;
            _promoteRequestCommand             = promoteRequestCommand;
            _archiveRequestCommand             = archiveRequestCommand;
            _removeAndRefundAllRequestsCommand = removeAndRefundAllRequestsCommand;
            _getCurrentRequestsQuery           = getCurrentRequestsQuery;
            _isSuperVipInQueueQuery            = isSuperVipInQueueQuery;
            _getUsersFormattedRequestsQuery    = getUsersFormattedRequestsQuery;
            _updatePlaylistStateCommand        = updatePlaylistStateCommand;
            _addSongToDriveCommand             = addSongToDriveCommand;
            _getMaxRegularRequestCountQuery    = getMaxRegularRequestCountQuery;
            _editSuperVipCommand                      = editSuperVipCommand;
            _removeSuperVipCommand                    = removeSuperVipCommand;
            _getUsersCurrentRequestCountsQuery        = getUsersCurrentRequestCountsQuery;
            _removeUsersRequestByPlaylistIndexCommand = removeUsersRequestByPlaylistIndexCommand;
            _archiveUsersSingleRequestCommand         = archiveUsersSingleRequestCommand;
            _getSingleSongRequestIdRepository         = getSingleSongRequestIdRepository;
            _getUsersRequestAtPlaylistIndexQuery      = getUsersRequestAtPlaylistIndexQuery;
            _editRequestCommand     = editRequestCommand;
            _getTopTenRequestsQuery = getTopTenRequestsQuery;
            _secretService          = secretService;
            _configService          = configService;
            _signalRService         = signalRService;
            _refundVipCommand       = refundVipCommand;

            _concurrentVipSongsToPlay = configService.Get <int>("ConcurrentVipSongsToPlay");

            _rand = new Random();
        }
 public ArchiveUsersSingleRequestCommand(
     IGetUsersRequestsRepository getUsersRequestsRepository,
     IArchiveRequestCommand archiveRequestCommand,
     IRefundVipCommand refundVipCommand,
     IConfigService configService
     )
 {
     _getUsersRequestsRepository = getUsersRequestsRepository;
     _archiveRequestCommand      = archiveRequestCommand;
     _refundVipCommand           = refundVipCommand;
     _configService = configService;
 }
Esempio n. 3
0
 public ArchiveRequestCommand(
     IArchiveRequestRepository archiveRequestRepository,
     IGetSongRequestByIdQuery getSongRequestByIdQuery,
     IRefundVipCommand refundVipCommand,
     IVipService vipService,
     IConfigService configService
     )
 {
     _archiveRequestRepository = archiveRequestRepository;
     _getSongRequestByIdQuery  = getSongRequestByIdQuery;
     _refundVipCommand         = refundVipCommand;
     _vipService    = vipService;
     _configService = configService;
 }
Esempio n. 4
0
 public RemoveUsersRequestByPlaylistIndexCommand(
     IGetUsersRequestsRepository getUsersRequestsRepository,
     IArchiveRequestCommand archiveRequestCommand,
     IRefundVipCommand refundVipCommand,
     IConfigService configService,
     IVipService vipService
     )
 {
     _getUsersRequestsRepository = getUsersRequestsRepository;
     _archiveRequestCommand      = archiveRequestCommand;
     _refundVipCommand           = refundVipCommand;
     _configService = configService;
     _vipService    = vipService;
 }
 public RemoveAndRefundAllRequestsCommand(
     IGetCurrentRequestsRepository getCurrentRequestsRepository,
     IClearRequestsRepository clearRequestsRepository,
     IRefundVipCommand refundVipCommand,
     IConfigService configService,
     IVipService vipService
     )
 {
     _getCurrentRequestsRepository = getCurrentRequestsRepository;
     _clearRequestsRepository      = clearRequestsRepository;
     _refundVipCommand             = refundVipCommand;
     _configService = configService;
     _vipService    = vipService;
 }
Esempio n. 6
0
 public VipService(
     IGiftVipCommand giftVipCommand,
     IRefundVipCommand refundVipCommand,
     ICheckUserHasVipsQuery checkUserHasVipsQuery,
     IUseVipCommand useVipCommand,
     IUseSuperVipCommand useSuperVipCommand,
     IModGiveVipCommand modGiveVipCommand,
     IGetUsersGiftedVipsQuery getUsersGiftedVipsQuery,
     IGetUserVipCountQuery getUserVipCountQuery,
     IGiveSubscriptionVipsCommand giveSubscriptionVipsCommand,
     IUpdateTotalBitsCommand updateTotalBitsCommand,
     IGetUserByteCountQuery getUserByteCountQuery,
     IConvertBytesCommand convertBytesCommand,
     IConvertAllBytesCommand convertAllBytesCommand,
     IGiveGiftSubBytesCommand giveGiftSubBytesCommand,
     IConfigService configService,
     ISignalRService signalRService,
     IClientIdService clientIdService,
     ILogger <IVipService> logger)
 {
     _giftVipCommand              = giftVipCommand;
     _refundVipCommand            = refundVipCommand;
     _checkUserHasVipsQuery       = checkUserHasVipsQuery;
     _useVipCommand               = useVipCommand;
     _useSuperVipCommand          = useSuperVipCommand;
     _modGiveVipCommand           = modGiveVipCommand;
     _getUsersGiftedVipsQuery     = getUsersGiftedVipsQuery;
     _getUserVipCountQuery        = getUserVipCountQuery;
     _giveSubscriptionVipsCommand = giveSubscriptionVipsCommand;
     _updateTotalBitsCommand      = updateTotalBitsCommand;
     _getUserByteCountQuery       = getUserByteCountQuery;
     _convertBytesCommand         = convertBytesCommand;
     _convertAllBytesCommand      = convertAllBytesCommand;
     _giveGiftSubBytesCommand     = giveGiftSubBytesCommand;
     _configService               = configService;
     _signalRService              = signalRService;
     _clientIdService             = clientIdService;
     _logger = logger;
 }