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