Esempio n. 1
0
        /// <summary>
        /// Initializes an instance of <see cref="VideoClient"/>.
        /// </summary>
        public VideoClient(HttpClient httpClient)
        {
            _controller = new YoutubeController(httpClient);

            Streams        = new StreamClient(httpClient);
            ClosedCaptions = new ClosedCaptionClient(httpClient);
        }
Esempio n. 2
0
 internal PlaylistClient(YoutubeController controller)
 {
     _controller = controller;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes an instance of <see cref="SearchClient"/>.
 /// </summary>
 public SearchClient(HttpClient httpClient)
 {
     _controller = new YoutubeController(httpClient);
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes an instance of <see cref="ClosedCaptionClient"/>.
 /// </summary>
 public ClosedCaptionClient(HttpClient httpClient)
 {
     _controller = new YoutubeController(httpClient);
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes an instance of <see cref="ChannelClient"/>.
 /// </summary>
 public ChannelClient(HttpClient httpClient)
 {
     _controller = new YoutubeController(httpClient);
 }
Esempio n. 6
0
 public YoutubeControllerTest()
 {
     provider   = new YoutubeApiProvider(Resources.YoutubeApiKey);
     controller = new YoutubeController(provider);
 }
Esempio n. 7
0
 /// <summary>
 /// Initializes an instance of <see cref="StreamClient"/>.
 /// </summary>
 public StreamClient(HttpClient httpClient)
 {
     _httpClient = httpClient;
     _controller = new YoutubeController(httpClient);
 }