コード例 #1
0
ファイル: VideoClient.cs プロジェクト: luunn54/YoutubeExplode
        /// <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);
        }
コード例 #2
0
 internal PlaylistClient(YoutubeController controller)
 {
     _controller = controller;
 }
コード例 #3
0
 /// <summary>
 /// Initializes an instance of <see cref="SearchClient"/>.
 /// </summary>
 public SearchClient(HttpClient httpClient)
 {
     _controller = new YoutubeController(httpClient);
 }
コード例 #4
0
 /// <summary>
 /// Initializes an instance of <see cref="ClosedCaptionClient"/>.
 /// </summary>
 public ClosedCaptionClient(HttpClient httpClient)
 {
     _controller = new YoutubeController(httpClient);
 }
コード例 #5
0
 /// <summary>
 /// Initializes an instance of <see cref="ChannelClient"/>.
 /// </summary>
 public ChannelClient(HttpClient httpClient)
 {
     _controller = new YoutubeController(httpClient);
 }
コード例 #6
0
 public YoutubeControllerTest()
 {
     provider   = new YoutubeApiProvider(Resources.YoutubeApiKey);
     controller = new YoutubeController(provider);
 }
コード例 #7
0
 /// <summary>
 /// Initializes an instance of <see cref="StreamClient"/>.
 /// </summary>
 public StreamClient(HttpClient httpClient)
 {
     _httpClient = httpClient;
     _controller = new YoutubeController(httpClient);
 }