コード例 #1
0
ファイル: HomeController.cs プロジェクト: babukh/Card-index
 public HomeController(IArtistService artistService, ISongService songService, IUserService userService, IRoleService roleService)
 {
     this._userService = userService;
     this._artistService = artistService;
     this._songService = songService;
     this._roleService = roleService;
 }
コード例 #2
0
 public UploadSong()
 {
     Debug.WriteLine("Init list song");
     this.Loaded += CheckAndLoad;
     this.InitializeComponent();
     this._songService = new Service.SongService();
     this._fileService = new LocalFileService();
 }
コード例 #3
0
 public AllMusicPage()
 {
     this.InitializeComponent();
     Debug.WriteLine("Init list song");
     this.Loaded      += CheckAndLoad;
     this._fileService = new LocalFileService();
     this._songService = new SongService();
 }
コード例 #4
0
 public ListSongPage()
 {
     Debug.WriteLine("Init list song.");
     this.Loaded += CheckMemberCredential;
     this.InitializeComponent();
     this._songService = new SongService();
     LoadSongs();
 }
コード例 #5
0
ファイル: PlaylistService.cs プロジェクト: JLignell/Jokify
        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>();
        }
コード例 #6
0
 public SongController(
     ISongService songService,
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     ILogger <LogoutModel> logger)
     : base(userManager, signInManager, logger)
 {
     this.songService = songService;
 }
コード例 #7
0
        public ListSong()

        {
            this.InitializeComponent();

            songService = new SongService();

            LoadSongs();
        }
コード例 #8
0
        public fManager()
        {
            InitializeComponent();

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

            Load();
        }
コード例 #9
0
ファイル: Mutation.cs プロジェクト: MarcusChok110/ListenAndGo
        public async Task <DeleteSongPayload> DeleteSongAsync
        (
            DeleteSongInput input, [Service] ISongService songService
        )
        {
            var success = await songService.DeleteAsync(input.Id);

            return(new DeleteSongPayload(success));
        }
コード例 #10
0
ファイル: SmartSearchService.cs プロジェクト: Lavsiant/MFA
 public SmartSearchService(
     IIdentityService identityService,
     IPlaylistService playlistService,
     ISongService songService)
 {
     _identityService = identityService;
     _playlistService = playlistService;
     _songService     = songService;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #13
0
        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();
        }
コード例 #14
0
ファイル: Mutation.cs プロジェクト: MarcusChok110/ListenAndGo
        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));
        }
コード例 #15
0
ファイル: MainForm.cs プロジェクト: spider9375/SongSorter
        public MainForm(ISongService songService,
                        IArtistService artistService,
                        ICriteriaService criteriesService)
        {
            this.songService     = songService;
            this.artistService   = artistService;
            this.criteriaService = criteriesService;

            InitializeComponent();
        }
コード例 #16
0
 public ArtistController(
     IArtistService artistService,
     IAlbumService albumService,
     ISongService songService
     )
 {
     _artistService = artistService;
     _albumService  = albumService;
     _songService   = songService;
 }
コード例 #17
0
ファイル: Mutation.cs プロジェクト: MarcusChok110/ListenAndGo
        // 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));
        }
コード例 #18
0
 public SongCreateController(ISongService songService,
                             IContributorService contributorService,
                             ISongEditionService songEditionService,
                             ILibraryService libaryService)
 {
     _songService        = songService;
     _contributorService = contributorService;
     _songEditionService = songEditionService;
     _libaryService      = libaryService;
 }
コード例 #19
0
        public fPersonal()
        {
            InitializeComponent();

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

            Load();
        }
コード例 #20
0
 public SongFacade(ISonglistService songlistService, ISongService songService,
                   IAlbumService albumService, ISongReviewService songReviewService,
                   IInterpretService interpretService)
 {
     _songlistService   = songlistService;
     _songService       = songService;
     _albumService      = albumService;
     _songReviewService = songReviewService;
     _interpretService  = interpretService;
 }
コード例 #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();
 }
コード例 #22
0
ファイル: APIController.cs プロジェクト: jmd2479/MusicPlanner
 public APIController(
     IVoicingService voicingService,
     ISongService songService,
     IInstrumentationService instrumentationService,
     IContributorService contributorService)
 {
     _voicingService         = voicingService;
     _songService            = songService;
     _instrumentationService = instrumentationService;
     _contributorService     = contributorService;
 }
コード例 #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);
 }
コード例 #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;
        }
コード例 #25
0
        //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();
        }
コード例 #26
0
 public ArtistController(
     IMemoryCache memoryCache,
     IArtistService artistService,
     IAlbumService albumService,
     ISongService songService,
     IHostingEnvironment hostingEnvironment)
 {
     _memoryCache   = memoryCache;
     _artistService = artistService;
     _albumService  = albumService;
     _songService   = songService;
 }
コード例 #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;
 }
コード例 #28
0
        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;
        }
コード例 #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);
            }));
        }
コード例 #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();
        }
コード例 #31
0
        public fPlaylist()
        {
            InitializeComponent();

            SetStatusFilter(false);

            Control.CheckForIllegalCrossThreadCalls = false;

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

            Load();
        }
コード例 #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;
 }
コード例 #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;
 }
コード例 #34
0
 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;
 }
コード例 #35
0
ファイル: HomeController.cs プロジェクト: babukh/Card-index
 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));
 }
コード例 #37
0
ファイル: ArtistController.cs プロジェクト: babukh/Card-index
 public ArtistController(IArtistService artistService, ISongService songService)
 {
     this._artistService = artistService;
     this._songService = songService;
 }
コード例 #38
0
 public MainViewModel(ISongService songService)
 {
     _songService = songService;
     TrackList= new List<track>();
 }
コード例 #39
0
ファイル: SongController.cs プロジェクト: babukh/Card-index
 public SongController(ISongService songService, IGenreService genreService, IArtistService artistService)
 {
     this._artistService = artistService;
     this._songService = songService;
     this._genreService = genreService;
 }