Esempio n. 1
0
 public HomeController(IArtistService artistService, ISongService songService, IUserService userService, IRoleService roleService)
 {
     this._userService = userService;
     this._artistService = artistService;
     this._songService = songService;
     this._roleService = roleService;
 }
Esempio n. 2
0
 public UploadSong()
 {
     Debug.WriteLine("Init list song");
     this.Loaded += CheckAndLoad;
     this.InitializeComponent();
     this._songService = new Service.SongService();
     this._fileService = new LocalFileService();
 }
Esempio n. 3
0
 public AllMusicPage()
 {
     this.InitializeComponent();
     Debug.WriteLine("Init list song");
     this.Loaded      += CheckAndLoad;
     this._fileService = new LocalFileService();
     this._songService = new SongService();
 }
 public ListSongPage()
 {
     Debug.WriteLine("Init list song.");
     this.Loaded += CheckMemberCredential;
     this.InitializeComponent();
     this._songService = new SongService();
     LoadSongs();
 }
Esempio n. 5
0
        public PlaylistService(IPlaylistRepository playlistRepository, ISongService songService, ISortService sortService)
        {
            this.playlistRepository = playlistRepository;
            this.songService = songService;
            this.sortService = sortService;

            Playlists = new ObservableCollection<Playlist>();
            Songs = new ObservableCollection<Song>();
        }
 public SongController(
     ISongService songService,
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     ILogger <LogoutModel> logger)
     : base(userManager, signInManager, logger)
 {
     this.songService = songService;
 }
Esempio n. 7
0
        public ListSong()

        {
            this.InitializeComponent();

            songService = new SongService();

            LoadSongs();
        }
Esempio n. 8
0
        public fManager()
        {
            InitializeComponent();

            this._songService         = new SongService();
            this._songCategoryService = new SongCategoryService();

            Load();
        }
Esempio n. 9
0
        public async Task <DeleteSongPayload> DeleteSongAsync
        (
            DeleteSongInput input, [Service] ISongService songService
        )
        {
            var success = await songService.DeleteAsync(input.Id);

            return(new DeleteSongPayload(success));
        }
Esempio n. 10
0
 public SmartSearchService(
     IIdentityService identityService,
     IPlaylistService playlistService,
     ISongService songService)
 {
     _identityService = identityService;
     _playlistService = playlistService;
     _songService     = songService;
 }
Esempio n. 11
0
 public PlaylistService(IPlaylistDao <DataAccess.Firestore.Model.Playlist> dao,
                        IPlaylistMapper <DataAccess.Firestore.Model.Playlist> mapper,
                        ISongService songService,
                        SpotifyService spotify)
 {
     this._dao         = dao;
     this._mapper      = mapper;
     this._songService = songService;
     this.spotify      = spotify;
 }
Esempio n. 12
0
 public MySong()
 {
     Debug.WriteLine("Init list song.");
     this.Loaded += CheckMemberCredential;
     this.InitializeComponent();
     this._songService = new SongService();
     LoadSongs();
     MyMediaElement.Position = TimeSpan.FromSeconds(timelineSlider.Value);
     refresh = true;
 }
        public static void ClassInit(TestContext context1)
        {
            Container.Install(new BussinessLayerInstaller());
            MappingInit.ConfigureMapping();
            _albumService     = Container.Resolve <IAlbumService>();
            _songService      = Container.Resolve <ISongService>();
            _interpretService = Container.Resolve <IInterpretService>();

            DeleteTables();
        }
Esempio n. 14
0
        public async Task <UpdateSongPayload> UpdateSongAsync
        (
            UpdateSongInput input, [Service] ISongService songService
        )
        {
            var song    = _mapper.Map <UpdateSongInput, Song>(input);
            var success = await songService.UpdateAsync(song);

            return(new UpdateSongPayload(success));
        }
Esempio n. 15
0
        public MainForm(ISongService songService,
                        IArtistService artistService,
                        ICriteriaService criteriesService)
        {
            this.songService     = songService;
            this.artistService   = artistService;
            this.criteriaService = criteriesService;

            InitializeComponent();
        }
Esempio n. 16
0
 public ArtistController(
     IArtistService artistService,
     IAlbumService albumService,
     ISongService songService
     )
 {
     _artistService = artistService;
     _albumService  = albumService;
     _songService   = songService;
 }
Esempio n. 17
0
        // Song Mutations

        public async Task <AddSongPayload> AddSongAsync
        (
            AddSongInput input, [Service] ISongService songService
        )
        {
            var song = _mapper.Map <AddSongInput, Song>(input);
            await songService.CreateAsync(song);

            return(new AddSongPayload(song));
        }
Esempio n. 18
0
 public SongCreateController(ISongService songService,
                             IContributorService contributorService,
                             ISongEditionService songEditionService,
                             ILibraryService libaryService)
 {
     _songService        = songService;
     _contributorService = contributorService;
     _songEditionService = songEditionService;
     _libaryService      = libaryService;
 }
Esempio n. 19
0
        public fPersonal()
        {
            InitializeComponent();

            this._songPersonalService = new SongPersonalService();
            this._songService         = new SongService();
            this._songCategoryService = new SongCategoryService();

            Load();
        }
Esempio n. 20
0
 public SongFacade(ISonglistService songlistService, ISongService songService,
                   IAlbumService albumService, ISongReviewService songReviewService,
                   IInterpretService interpretService)
 {
     _songlistService   = songlistService;
     _songService       = songService;
     _albumService      = albumService;
     _songReviewService = songReviewService;
     _interpretService  = interpretService;
 }
Esempio n. 21
0
 public MyMusicPage()
 {
     //this.ListSong.Add(new Song()
     //{
     //    name = "Chưa bao giờ",
     //    singer = "Hà Anh Tuấn",
     //    thumbnail = "https://file.tinnhac.com/resize/600x-/music/2017/07/04/19554480101556946929-b89c.jpg",
     //    link = "https://c1-ex-swe.nixcdn.com/NhacCuaTui963/ChuaBaoGioSEESINGSHARE2-HaAnhTuan-5111026.mp3"
     //});
     //this.ListSong.Add(new Song()
     //{
     //    name = "Tình thôi xót xa",
     //    singer = "Hà Anh Tuấn",
     //    thumbnail = "https://i.ytimg.com/vi/XyjhXzsVdiI/maxresdefault.jpg",
     //    link = "https://c1-ex-swe.nixcdn.com/NhacCuaTui963/TinhThoiXotXaSEESINGSHARE1-HaAnhTuan-4652191.mp3"
     //});
     //this.ListSong.Add(new Song()
     //{
     //    name = "Tháng tư là tháng nói dối của em",
     //    singer = "Hà Anh Tuấn",
     //    thumbnail = "https://sky.vn/wp-content/uploads/2018/05/0-30.jpg",
     //    link = "https://od.lk/s/NjFfMjM4MzQ1OThf/ThangTuLaLoiNoiDoiCuaEm-HaAnhTuan-4609544.mp3"
     //});
     //this.ListSong.Add(new Song()
     //{
     //    name = "Nơi ấy bình yên",
     //    singer = "Hà Anh Tuấn",
     //    thumbnail = "https://i.ytimg.com/vi/A8u_fOetSQc/hqdefault.jpg",
     //    link = "https://c1-ex-swe.nixcdn.com/NhacCuaTui946/NoiAyBinhYenSeeSingShare2-HaAnhTuan-5085337.mp3"
     //});
     //this.ListSong.Add(new Song()
     //{
     //    name = "Giấc mơ chỉ là giấc mơ",
     //    singer = "Hà Anh Tuấn",
     //    thumbnail = "https://i.ytimg.com/vi/J_VuNwxSEi0/maxresdefault.jpg",
     //    link = "https://c1-ex-swe.nixcdn.com/NhacCuaTui945/GiacMoChiLaGiacMoSeeSingShare2-HaAnhTuan-5082049.mp3"
     //});
     //this.ListSong.Add(new Song()
     //{
     //    name = "Người tình mùa đông",
     //    singer = "Hà Anh Tuấn",
     //    thumbnail = "https://i.ytimg.com/vi/EXAmxBxpZEM/maxresdefault.jpg",
     //    link = "https://c1-ex-swe.nixcdn.com/NhacCuaTui963/NguoiTinhMuaDongSEESINGSHARE2-HaAnhTuan-5104816.mp3"
     //}); ;
     Debug.WriteLine("Init list song");
     this.Loaded += CheckAndLoad;
     this.InitializeComponent();
     this._songService = new SongService();
     this._fileService = new LocalFileService();
     //DispatcherTimer timer = new DispatcherTimer();
     //timer.Interval = TimeSpan.FromSeconds(1);
     //timer.Tick += timer_Tick;
     //timer.Start();
 }
Esempio n. 22
0
 public APIController(
     IVoicingService voicingService,
     ISongService songService,
     IInstrumentationService instrumentationService,
     IContributorService contributorService)
 {
     _voicingService         = voicingService;
     _songService            = songService;
     _instrumentationService = instrumentationService;
     _contributorService     = contributorService;
 }
Esempio n. 23
0
 public LrcBoardViewModel(ILrcManager lrcManager, IIOService ioService, ISongService songService)
 {
     _lrcManager      = lrcManager;
     _ioService       = ioService;
     _songService     = songService;
     OpenLrcCommand   = new DelegateCommand(LoadLrc);
     SaveLrcCommand   = new DelegateCommand(SaveLrc);
     EditLrcCommand   = new DelegateCommand(EditLrc);
     LrcOffsetCommand = new DelegateCommand(OpenOffset);
     LrcSource        = new ObservableCollection <ILrcModel>(lrcManager.LrcModels);
 }
Esempio n. 24
0
        public SearchViewModel(IMvxNavigationService navigationService, ITopNavigationViewModelService topNavigationViewModelService, IBottomNavigationViewModelService bottomNavigationViewModelService, ISongService songService, IArtistService artistService, IAlbumService albumService, IPlaylistService playlistService)
        {
            _navigationService                = navigationService;
            _topNavigationViewModelService    = topNavigationViewModelService;
            _bottomNavigationViewModelService = bottomNavigationViewModelService;

            _songService     = songService;
            _artistService   = artistService;
            _albumService    = albumService;
            _playlistService = playlistService;
        }
        //this.ListSong.Add(new Song()
        //{
        //    name = "Chưa bao giờ",
        //    singer = "Hà Anh Tuấn",
        //    thumbnail = "https://file.tinnhac.com/resize/600x-/music/2017/07/04/19554480101556946929-b89c.jpg",
        //    link = "https://c1-ex-swe.nixcdn.com/NhacCuaTui963/ChuaBaoGioSEESINGSHARE2-HaAnhTuan-5111026.mp3"
        //});
        //this.ListSong.Add(new Song()
        //{
        //    name = "Tình thôi xót xa",
        //    singer = "Hà Anh Tuấn",
        //    thumbnail = "https://i.ytimg.com/vi/XyjhXzsVdiI/maxresdefault.jpg",
        //    link = "https://c1-ex-swe.nixcdn.com/NhacCuaTui963/TinhThoiXotXaSEESINGSHARE1-HaAnhTuan-4652191.mp3"
        //});
        //this.ListSong.Add(new Song()
        //{
        //    name = "Tháng tư là tháng nói dối của em",
        //    singer = "Hà Anh Tuấn",
        //    thumbnail = "https://sky.vn/wp-content/uploads/2018/05/0-30.jpg",
        //    link = "https://od.lk/s/NjFfMjM4MzQ1OThf/ThangTuLaLoiNoiDoiCuaEm-HaAnhTuan-4609544.mp3"
        //});
        //this.ListSong.Add(new Song()
        //{
        //    name = "Nơi ấy bình yên",
        //    singer = "Hà Anh Tuấn",
        //    thumbnail = "https://i.ytimg.com/vi/A8u_fOetSQc/hqdefault.jpg",
        //    link = "https://c1-ex-swe.nixcdn.com/NhacCuaTui946/NoiAyBinhYenSeeSingShare2-HaAnhTuan-5085337.mp3"
        //});
        //this.ListSong.Add(new Song()
        //{
        //    name = "Giấc mơ chỉ là giấc mơ",
        //    singer = "Hà Anh Tuấn",
        //    thumbnail = "https://i.ytimg.com/vi/J_VuNwxSEi0/maxresdefault.jpg",
        //    link = "https://c1-ex-swe.nixcdn.com/NhacCuaTui945/GiacMoChiLaGiacMoSeeSingShare2-HaAnhTuan-5082049.mp3"
        //});
        //this.ListSong.Add(new Song()
        //{
        //    name = "Người tình mùa đông",
        //    singer = "Hà Anh Tuấn",
        //    thumbnail = "https://i.ytimg.com/vi/EXAmxBxpZEM/maxresdefault.jpg",
        //    link = "https://c1-ex-swe.nixcdn.com/NhacCuaTui963/NguoiTinhMuaDongSEESINGSHARE2-HaAnhTuan-5104816.mp3"
        //}); ;

        public MyMusic()
        {
            Debug.WriteLine("Init list song");
            this.Loaded += CheckAndLoad;
            this.InitializeComponent();
            this._songService = new SongService();
            this._fileService = new LocalFileService();
            //DispatcherTimer timer = new DispatcherTimer();
            //timer.Interval = TimeSpan.FromSeconds(1);
            //timer.Tick += timer_Tick;
            //timer.Start();
        }
Esempio n. 26
0
 public ArtistController(
     IMemoryCache memoryCache,
     IArtistService artistService,
     IAlbumService albumService,
     ISongService songService,
     IHostingEnvironment hostingEnvironment)
 {
     _memoryCache   = memoryCache;
     _artistService = artistService;
     _albumService  = albumService;
     _songService   = songService;
 }
Esempio n. 27
0
 public PlacesService(IPlacesDao <DataAccess.Firestore.Model.Place> dao, IPlaceMapper <DataAccess.Firestore.Model.Place> mapper,
                      IPlaylistService playlistService, ISongService songService, RecommendationService recommendation, IUserService users, IRatingService ratingService, ILogger <PlacesService> log)
 {
     _dao    = dao;
     _mapper = mapper;
     this.playlistService  = playlistService;
     this.songService      = songService;
     recommendationService = recommendation;
     userService           = users;
     this.ratingService    = ratingService;
     this.log = log;
 }
        public ListSongPage()
        {
            this.Loaded += CheckMemberCredential;
            Debug.WriteLine(ProjectConfiguration.CurrentMemberCredential);

            this.InitializeComponent();
            this.fileService  = new LocalFileService();
            this._songService = new SongService();
            LoadSongs();
            MyMediaElement.Position = TimeSpan.FromSeconds(timelineSlider.Value);
            refresh = true;
        }
Esempio n. 29
0
        public ChangeAlbumViewModel(IMvxNavigationService navigationService, IUserDialogs userDialogs, IValidator validator, ISongService songService, IGenreService genreService, IArtistService artistService, IAlbumService albumService, IBottomNavigationViewModelService bottomNavigationViewModelService, ITopNavigationViewModelService topNavigationViewModelService)
        {
            _navigationService                = navigationService;
            _topNavigationViewModelService    = topNavigationViewModelService;
            _bottomNavigationViewModelService = bottomNavigationViewModelService;

            _userDialogs = userDialogs;

            _validationHelper = new ValidationHelper(validator, this, Errors.Value, (propertyName) => { FocusName.Value = propertyName; });

            _songService   = songService;
            _genreService  = genreService;
            _artistService = artistService;
            _albumService  = albumService;

            ValidateNameCommand = new MvxCommand(() => _validationHelper.Validate(() => Name));

            ValidateGenresCommand = new MvxCommand(() => _validationHelper.Validate(() => Genres));

            ValidateArtistsCommand = new MvxCommand(() => _validationHelper.Validate(() => Artists));

            ValidateSongsCommand = new MvxCommand(() => _validationHelper.Validate(() => Songs));

            InitValidationCommand = new MvxCommand(() => {
                _validationHelper.ResetValidation();
            });

            ChangeCommand = new MvxCommand(() =>
            {
                if (!IsTaskExecutedValueConverter.Convert(ChangeTask.Value))
                {
                    ChangeTask.Value = NotifyTaskCompletion.Create(AttemptChangeAsync);
                }
            });

            _genresTokenParentObject = new TokenParentHelper(new MvxCommand <TokenViewModel>((_) =>
            {
                Genres.Value?.Remove(_ as TokenViewModel <GenreModel>);
                ValidateGenresCommand.Execute(null);
            }));

            _artistsTokenParentObject = new TokenParentHelper(new MvxCommand <TokenViewModel>((_) =>
            {
                Artists.Value?.Remove(_ as TokenViewModel <ArtistModel>);
                ValidateArtistsCommand.Execute(null);
            }));

            _songsTokenParentObject = new TokenParentHelper(new MvxCommand <TokenViewModel>((_) =>
            {
                Songs.Value?.Remove(_ as TokenViewModel <SongModel>);
                ValidateSongsCommand.Execute(null);
            }));
        }
Esempio n. 30
0
        public MySongPage()
        {
            this.Loaded += CheckMemberCredential;
            this.InitializeComponent();
            this._songService = new SongService();
            LoadSongs();
            this.volumeSlider.Value = MyMediaElement.Volume * 100;
            DispatcherTimer timer = new DispatcherTimer();

            timer.Interval = TimeSpan.FromSeconds(1);
            timer.Tick    += TimeTick;
            timer.Start();
        }
Esempio n. 31
0
        public fPlaylist()
        {
            InitializeComponent();

            SetStatusFilter(false);

            Control.CheckForIllegalCrossThreadCalls = false;

            this._songService         = new SongService();
            this._songCategoryService = new SongCategoryService();

            Load();
        }
Esempio n. 32
0
 public ShoppingCartController(
     IShoppingCartManager shoppingCartManager,
     ISongService songService,
     UserManager <User> userManager,
     IShoppingService shoppingService,
     IAlbumService albumsService)
 {
     this.shoppingCartManager = shoppingCartManager;
     this.songService         = songService;
     this.userManager         = userManager;
     this.shoppingService     = shoppingService;
     this.albumsService       = albumsService;
 }
Esempio n. 33
0
 public SongController(ILocalizationService localizationService,
     IPictureService pictureService,
     ICustomerService customerService,
     IDateTimeHelper dateTimeHelper,
     CustomerSettings customerSettings,
     MediaSettings mediaSettings,
     IArtistPageService artistPageService,
     IArtistPageAPIService artistPageApiService,
     ISongService songService,
     IMusicService musicService,
     mobSocialSettings mobSocialSettings,
     IMobSocialService mobSocialService,
     IWorkContext workContext,
     IMobSocialMessageService mobsocialMessageService,
     ISharedSongService sharedSongService,
     IStoreContext storeContext,
     IProductService productService,
     IDownloadService downloadService,
     IPriceFormatter priceFormatter)
 {
     _localizationService = localizationService;
     _pictureService = pictureService;
     _customerService = customerService;
     _dateTimeHelper = dateTimeHelper;
     _customerSettings = customerSettings;
     _mediaSettings = mediaSettings;
     _mobSocialSettings = mobSocialSettings;
     _mobSocialService = mobSocialService;
     _workContext = workContext;
     _artistPageApiService = artistPageApiService;
     _artistPageService = artistPageService;
     _songService = songService;
     _musicService = musicService;
     _mobsocialMessageService = mobsocialMessageService;
     _sharedSongService = sharedSongService;
     _storeContext = storeContext;
     _productService = productService;
     _downloadService = downloadService;
     _priceFormatter = priceFormatter;
 }
 public ArtistPageController(IMediaService pictureService,
     IUserService userService,
     UserSettings customerSettings,
     MediaSettings mediaSettings,
     IArtistPageService artistPageService,
     IArtistPageApiService artistPageApiService,
     IArtistPageManagerService artistPageManagerService,
     ISongService songService,
     IArtistPagePaymentService artistPagePaymentService, 
     IMusicService musicService, 
     IFriendService friendService)
 {
     _pictureService = pictureService;
     _userService = userService;
     _customerSettings = customerSettings;
     _mediaSettings = mediaSettings;
     _artistPageService = artistPageService;
     _artistPageApiService = artistPageApiService;
     _artistPageManagerService = artistPageManagerService;
     _songService = songService;
     _artistPagePaymentService = artistPagePaymentService;
     _musicService = musicService;
     _friendService = friendService;
 }
Esempio n. 35
0
 public HomeController(ISongService songService, IUserService userService, IMarkService markService)
 {
     this._markService = markService;
     this._userService = userService;
     this._songService = songService;
 }
 public SongController()
 {
     var db = new MediaSystemContext();
     this.songService = new SongService(new EfGenericRepository<Song>(db), new EfGenericRepository<Genre>(db));
 }
Esempio n. 37
0
 public ArtistController(IArtistService artistService, ISongService songService)
 {
     this._artistService = artistService;
     this._songService = songService;
 }
 public MainViewModel(ISongService songService)
 {
     _songService = songService;
     TrackList= new List<track>();
 }
Esempio n. 39
0
 public SongController(ISongService songService, IGenreService genreService, IArtistService artistService)
 {
     this._artistService = artistService;
     this._songService = songService;
     this._genreService = genreService;
 }