예제 #1
0
 public static YoutubeChannelSection RequestAllParts(this YoutubeChannelSection channelSection)
 {
     return(channelSection.RequestContentDetails()
            .RequestLocalizations()
            .RequestTargeting()
            .RequestSnippet());
 }
예제 #2
0
 public static YoutubePlaylists Playlists(this YoutubeChannelSection channelSection)
 {
     if (channelSection.PlaylistIds == null)
     {
         channelSection = channelSection.RequestContentDetails();
     }
     if (channelSection.PlaylistIds == null)
     {
         return(null);
     }
     return(Playlists(channelSection.PlaylistIds.ToArray()));
 }