C# Класс MusicCatalogue.Client.SongsDataClient

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddSong ( string title, int year, string genre, ICollection artists, ICollection albums ) : void
DeleteSong ( int id ) : bool
GetSong ( int id ) : SongModel
GetSongs ( ) : IEnumerable
SongsDataClient ( HttpClient client ) : MusicCatalogue.DataTransferObjects
UpdateSong ( int id, string title, int year, string genre, ICollection artists, ICollection albums ) : void

Описание методов

AddSong() публичный Метод

public AddSong ( string title, int year, string genre, ICollection artists, ICollection albums ) : void
title string
year int
genre string
artists ICollection
albums ICollection
Результат void

DeleteSong() публичный Метод

public DeleteSong ( int id ) : bool
id int
Результат bool

GetSong() публичный Метод

public GetSong ( int id ) : SongModel
id int
Результат MusicCatalogue.DataTransferObjects.SongModel

GetSongs() публичный Метод

public GetSongs ( ) : IEnumerable
Результат IEnumerable

SongsDataClient() публичный Метод

public SongsDataClient ( HttpClient client ) : MusicCatalogue.DataTransferObjects
client System.Net.Http.HttpClient
Результат MusicCatalogue.DataTransferObjects

UpdateSong() публичный Метод

public UpdateSong ( int id, string title, int year, string genre, ICollection artists, ICollection albums ) : void
id int
title string
year int
genre string
artists ICollection
albums ICollection
Результат void