Ejemplo n.º 1
0
        public static YoutubeChannelSections ForChannelId(this YoutubeChannelSections channelSections, string id)
        {
            var settings = channelSections.Settings.Clone();

            settings.ChannelId = id;
            return(ChannelSections(settings, channelSections.PartTypes.ToArray()));
        }
Ejemplo n.º 2
0
        public static YoutubeChannelSections RequestId(this YoutubeChannelSections channelSections, params string[] ids)
        {
            var settings = channelSections.Settings.Clone();

            settings.Id = settings.Id.AddItems(ids);
            return(ChannelSections(settings, channelSections.PartTypes.ToArray()));
        }
Ejemplo n.º 3
0
 public static YoutubeChannelSections RequestAllParts(this YoutubeChannelSections channelSections)
 {
     return(channelSections.RequestContentDetails()
            .RequestLocalizations()
            .RequestTargeting()
            .RequestSnippet());
 }
Ejemplo n.º 4
0
 public static YoutubeChannelSections RequestLocalizations(this YoutubeChannelSections channelSections)
 {
     return(channelSections.RequestPart(PartType.Localizations));
 }
Ejemplo n.º 5
0
 public static YoutubeChannelSections RequestContentDetails(this YoutubeChannelSections channelSections)
 {
     return(channelSections.RequestPart(PartType.ContentDetails));
 }
Ejemplo n.º 6
0
 public static IEnumerable <YoutubeChannelSection> TakePages(this YoutubeChannelSections channelSections, int pageCount)
 {
     return(channelSections.Take(channelSections.ResultsPerPage.GetValueOrDefault(ResultsPerPage) * pageCount));
 }
Ejemplo n.º 7
0
 public static YoutubeChannelSections RequestPart(this YoutubeChannelSections channelSections, PartType partType)
 {
     return(ChannelSections(channelSections.Settings.Clone(), channelSections.PartTypes.Append(partType).ToArray()));
 }
Ejemplo n.º 8
0
 public static IEnumerable <YoutubeChannelSection> TakePage(this YoutubeChannelSections channelSections)
 {
     return(channelSections.TakePages(1));
 }
Ejemplo n.º 9
0
 public static YoutubeChannelSections RequestSnippet(this YoutubeChannelSections channelSections)
 {
     return(channelSections.RequestPart(PartType.Snippet));
 }
Ejemplo n.º 10
0
 public static YoutubeChannelSections RequestTargeting(this YoutubeChannelSections channelSections)
 {
     return(channelSections.RequestPart(PartType.Targeting));
 }