Ejemplo n.º 1
0
 public static YoutubeChannelSection RequestAllParts(this YoutubeChannelSection channelSection)
 {
     return(channelSection.RequestContentDetails()
            .RequestLocalizations()
            .RequestTargeting()
            .RequestSnippet());
 }
Ejemplo n.º 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()));
 }
Ejemplo n.º 3
0
 public static YoutubeChannelSection RequestSnippet(this YoutubeChannelSection channelSection)
 {
     return(channelSection.RequestPart(PartType.Snippet));
 }
Ejemplo n.º 4
0
 public static YoutubeChannelSection RequestTargeting(this YoutubeChannelSection channelSection)
 {
     return(channelSection.RequestPart(PartType.Targeting));
 }
Ejemplo n.º 5
0
 public static YoutubeChannelSection RequestLocalizations(this YoutubeChannelSection channelSection)
 {
     return(channelSection.RequestPart(PartType.Localizations));
 }
Ejemplo n.º 6
0
 public static YoutubeChannelSection RequestContentDetails(this YoutubeChannelSection channelSection)
 {
     return(channelSection.RequestPart(PartType.ContentDetails));
 }
Ejemplo n.º 7
0
 public static YoutubeChannelSection RequestPart(this YoutubeChannelSection channelSection, PartType partType)
 {
     return(ChannelSection(channelSection.Settings.Clone(), channelSection.PartTypes.Append(partType).ToArray()));
 }