public static YoutubeChannelSections ForChannelId(this YoutubeChannelSections channelSections, string id) { var settings = channelSections.Settings.Clone(); settings.ChannelId = id; return(ChannelSections(settings, channelSections.PartTypes.ToArray())); }
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())); }
public static YoutubeChannelSections RequestAllParts(this YoutubeChannelSections channelSections) { return(channelSections.RequestContentDetails() .RequestLocalizations() .RequestTargeting() .RequestSnippet()); }
public static YoutubeChannelSections RequestLocalizations(this YoutubeChannelSections channelSections) { return(channelSections.RequestPart(PartType.Localizations)); }
public static YoutubeChannelSections RequestContentDetails(this YoutubeChannelSections channelSections) { return(channelSections.RequestPart(PartType.ContentDetails)); }
public static IEnumerable <YoutubeChannelSection> TakePages(this YoutubeChannelSections channelSections, int pageCount) { return(channelSections.Take(channelSections.ResultsPerPage.GetValueOrDefault(ResultsPerPage) * pageCount)); }
public static YoutubeChannelSections RequestPart(this YoutubeChannelSections channelSections, PartType partType) { return(ChannelSections(channelSections.Settings.Clone(), channelSections.PartTypes.Append(partType).ToArray())); }
public static IEnumerable <YoutubeChannelSection> TakePage(this YoutubeChannelSections channelSections) { return(channelSections.TakePages(1)); }
public static YoutubeChannelSections RequestSnippet(this YoutubeChannelSections channelSections) { return(channelSections.RequestPart(PartType.Snippet)); }
public static YoutubeChannelSections RequestTargeting(this YoutubeChannelSections channelSections) { return(channelSections.RequestPart(PartType.Targeting)); }