C# Class MusicCatalogue.Client.ArtistsDataClient

Show file Open project: vladislav-karamfilov/TelerikAcademy Class Usage Examples

Public Methods

Method Description
AddArtist ( string name, string country, System.DateTime dateOfBirth, ICollection songs, ICollection albums ) : void
ArtistsDataClient ( HttpClient client ) : System
DeleteArtist ( int id ) : bool
GetArtist ( int id ) : ArtistModel
GetArtists ( ) : IEnumerable
UpdateArtist ( int id, string name, string country, System.DateTime dateOfBirth, ICollection songs, ICollection albums ) : void

Method Details

AddArtist() public method

public AddArtist ( string name, string country, System.DateTime dateOfBirth, ICollection songs, ICollection albums ) : void
name string
country string
dateOfBirth System.DateTime
songs ICollection
albums ICollection
return void

ArtistsDataClient() public method

public ArtistsDataClient ( HttpClient client ) : System
client System.Net.Http.HttpClient
return System

DeleteArtist() public method

public DeleteArtist ( int id ) : bool
id int
return bool

GetArtist() public method

public GetArtist ( int id ) : ArtistModel
id int
return MusicCatalogue.DataTransferObjects.ArtistModel

GetArtists() public method

public GetArtists ( ) : IEnumerable
return IEnumerable

UpdateArtist() public method

public UpdateArtist ( int id, string name, string country, System.DateTime dateOfBirth, ICollection songs, ICollection albums ) : void
id int
name string
country string
dateOfBirth System.DateTime
songs ICollection
albums ICollection
return void