/// <summary> /// Initializes an instance of <see cref="YoutubeClient"/>. /// </summary> internal YoutubeClient(YoutubeHttpClient httpClient) { Videos = new VideoClient(httpClient); Playlists = new PlaylistClient(httpClient); Channels = new ChannelClient(httpClient); Search = new SearchClient(httpClient); }
/// <summary> /// Initializes an instance of <see cref="YoutubeClient"/>. /// </summary> public YoutubeClient(HttpClient httpClient) { Videos = new VideoClient(httpClient); Playlists = new PlaylistClient(httpClient); Channels = new ChannelClient(httpClient); Search = new SearchClient(httpClient); }
public YoutubeVideoDownloader() { var ytClient = new YoutubeClient(); _streamClient = ytClient.Videos.Streams; _playlistClient = ytClient.Playlists; _videoClient = ytClient.Videos; }
/// <summary> /// Initializes an instance of <see cref="YoutubeClient" />. /// </summary> internal YoutubeClient(YoutubeHttpClient httpClient) { Videos = new VideoClient(httpClient); Playlists = new PlaylistClient(httpClient); }