public SearchController( ITagEntity pTagEntity, ISearchMusicService pYoutubeSearch, ILogService pLogger) : base(pLogger) { _tagEntity = pTagEntity; _youtubeSearch = pYoutubeSearch; }
public TagsController( ITagEntity pTagEntity, IPlaylistEntity pPlaylistEntity, ILogService pLogger) : base(pLogger) { _tagEntity = pTagEntity; _playlistEntity = pPlaylistEntity; }
public PlaylistEntity( IBaseSettings pSettingsConfig, ITagEntity pTagEntity, ISongsEntity pSongEntity) : base(pSettingsConfig, nameof(Playlist)) { _tagEntity = pTagEntity; _songEntity = pSongEntity; }
public PlaylistsController( IPlaylistEntity pPlaylistEntity, ISearchMusicService pYoutubeSearch, ISongsEntity pPlaylistSongsEntity, ITagEntity pTagEntity, ILogService pLogger) : base(pLogger) { _playlistEntity = pPlaylistEntity; _youtubeSearch = pYoutubeSearch; _playlistSongsEntity = pPlaylistSongsEntity; _tagEntity = pTagEntity; }
public PlaylistsPopularController( IPlaylistEntity pPlaylistEntity, ISearchMusicService pYoutubeSearch, ISongsEntity pSongManager, ITagEntity pTagEntity, ILogService pLogger ) : base(pLogger) { _playlistEntity = pPlaylistEntity; _youtubeSearch = pYoutubeSearch; _songManager = pSongManager; _tagEntity = pTagEntity; }
public Tag Convert(ITagEntity tagEntity, OnObjectCreation onObjectCreation) { //compose Tag List <Product> products = new List <Product>(); Tag tag = domainFactory.CreateTag(tagEntity.Id , tagEntity.Name , products); // handle instantiated tags. Needed by repository to prevent looping. onObjectCreation(tag, tagEntity); // gather child objects: products foreach (ProductTagEntity productTagEntity in tagEntity.ProductTagEntities) { Product product = repositoryFactory.ProductsRepository.Get(productTagEntity.ProductId); products.Add(product); } return(tag); }
// Handle cacheing of object on instantiation private void OnObjectCreation(Tag tag, ITagEntity tagEntity) { tagCache.Add(tag, tagEntity); }