Exemple #1
0
        public Album(AlbumDataDto dto, IAlbumRepository albumRepository, IArtistCollection artistCollection, ISongCollection songCollection)
        {
            Id       = dto.Id;
            Name     = dto.Name;
            CoverArt = dto.CoverArt;

            _artistId = dto.ArtistId;

            _albumRepository  = albumRepository;
            _artistCollection = artistCollection;
            _songCollection   = songCollection;
        }
Exemple #2
0
        public Song(SongDataDto dto, ISongRepository songRepository, IAlbumCollection albumCollection, IArtistCollection artistCollection)
        {
            Id       = dto.Id;
            Name     = dto.Name;
            Duration = dto.Duration;
            FileName = dto.FileName;

            _albumId = dto.AlbumId;

            _songRepository   = songRepository;
            _albumCollection  = albumCollection;
            _artistCollection = artistCollection;
        }
Exemple #3
0
        public User(UserDataDto dto, IUserRepository userRepository, ISongCollection songCollection, IAlbumCollection albumCollection, IArtistCollection artistCollection)
        {
            Id       = dto.Id;
            Username = dto.Username;

            _password = dto.Password;
            _apiToken = dto.ApiToken;

            _userRepository   = userRepository;
            _songCollection   = songCollection;
            _albumCollection  = albumCollection;
            _artistCollection = artistCollection;
        }
 public AuthenticatedUser(IHttpContextAccessor httpContextAccessor, IUserCollection userCollection, IArtistCollection artistCollection)
 {
     _httpContextAccessor = httpContextAccessor;
     _userCollection      = userCollection;
     _artistCollection    = artistCollection;
 }
Exemple #5
0
 public ArtistLikesController(IArtistCollection artistCollection, AuthenticatedUser authenticatedUser)
 {
     _artistCollection  = artistCollection;
     _authenticatedUser = authenticatedUser;
 }