コード例 #1
0
 public ChartService(
     ChartRepository repo,
     IChartDateService chartDateService,
     ILastFmService lastFmService)
 {
     _repo             = repo;
     _chartDateService = chartDateService;
     _lastFm           = lastFmService;
 }
コード例 #2
0
 public UserController(
     IUserService userService,
     ChartRepository chartRepository,
     IChartService chartService,
     IChartDateService chartDateService,
     ILastFmService lastFmService)
 {
     _userService      = userService;
     _chartRepository  = chartRepository;
     _chartService     = chartService;
     _chartDateService = chartDateService;
     _lastFm           = lastFmService;
 }
コード例 #3
0
        public ViewWidgetMediaProviderLastFm(IMediaProviderSupportV7 aSupport, ILastFmService aService)
        {
            iMutex = new Mutex(false);

            iSupport = aSupport;
            iSupport.ViewSupport.EventSupportChanged += EventSupportChanged;

            iService = aService;

            InitializeComponent();

            SetViewColours();

            iContextMenu = new ViewContextMenu();
            listBox1.ContextMenuStrip = iContextMenu.ContextMenuStrip;

            iService.EventChangeStationCompleted += EventChangeStationCompleted;
            iService.EventCommandCompleted       += EventCommandCompleted;
            iService.EventHandshakeCompleted     += EventHandshakeCompleted;
            iService.EventPlaylistCompleted      += EventPlaylistCompleted;

            iLoginRequired = true;
        }
コード例 #4
0
 public AuthorizationController(ILastFmService lastFmService, IUserService userService)
 {
     _lastFm      = lastFmService;
     _userService = userService;
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LastFmModule"/> class.
 /// </summary>
 /// <param name="lastFmService">The lastfm service.</param>
 /// <param name="commandWebsocketService">The Command websocket connection.</param>
 public LastFmModule(ILastFmService lastFmService, ICommandWebsocketService commandWebsocketService)
 {
     _lastFmService           = lastFmService;
     _commandWebsocketService = commandWebsocketService;
 }