Пример #1
0
        /// <summary>
        /// Initializes an instance of <see cref="VideoClient"/>.
        /// </summary>
        internal VideoClient(YoutubeHttpClient httpClient)
        {
            _httpClient = httpClient;

            Streams        = new StreamsClient(httpClient);
            ClosedCaptions = new ClosedCaptionClient(httpClient);
        }
Пример #2
0
    /// <summary>
    /// Initializes an instance of <see cref="VideoClient"/>.
    /// </summary>
    public VideoClient(HttpClient http)
    {
        _controller = new VideoController(http);

        Streams        = new StreamClient(http);
        ClosedCaptions = new ClosedCaptionClient(http);
    }