public static YoutubeCommentThreads TextFormat(this YoutubeCommentThreads commentThreads, TextFormat format) { var settings = commentThreads.Settings.Clone(); settings.TextFormat = format; return(CommentThreads(settings, commentThreads.PartTypes.ToArray())); }
public static YoutubeCommentThreads RequestId(this YoutubeCommentThreads commentThreads, params string[] ids) { var settings = commentThreads.Settings.Clone(); settings.Id = settings.Id.AddItems(ids); return(CommentThreads(settings, commentThreads.PartTypes.ToArray())); }
public static YoutubeCommentThreads OrderBy(this YoutubeCommentThreads commentThreads, CommentOrder order) { var settings = commentThreads.Settings.Clone(); settings.Order = order; return(CommentThreads(settings, commentThreads.PartTypes.ToArray())); }
public static YoutubeCommentThreads SearchTerms(this YoutubeCommentThreads commentThreads, string s) { var settings = commentThreads.Settings.Clone(); settings.SearchTerms = s; return(CommentThreads(settings, commentThreads.PartTypes.ToArray())); }
public static YoutubeCommentThreads ForChannelIdAll(this YoutubeCommentThreads commentThreads, string id) { var settings = commentThreads.Settings.Clone(); settings.AllThreadsRelatedToChannelId = id; return(CommentThreads(settings, commentThreads.PartTypes.ToArray())); }
public static YoutubeCommentThreads ForVideoId(this YoutubeCommentThreads commentThreads, string id) { var settings = commentThreads.Settings.Clone(); settings.VideoId = id; return(CommentThreads(settings, commentThreads.PartTypes.ToArray())); }
public static IEnumerable <YoutubeCommentThread> TakePages(this YoutubeCommentThreads commentThreads, int pageCount) { return(commentThreads.Take(commentThreads.ResultsPerPage.GetValueOrDefault(ResultsPerPage) * pageCount)); }
public static YoutubeCommentThreads RequestAllParts(this YoutubeCommentThreads commentThreads) { return(commentThreads.RequestReplies().RequestSnippet()); }
public static YoutubeCommentThreads RequestSnippet(this YoutubeCommentThreads commentThreads) { return(commentThreads.RequestPart(PartType.Snippet)); }
public static YoutubeCommentThreads RequestReplies(this YoutubeCommentThreads commentThreads) { return(commentThreads.RequestPart(PartType.Replies)); }
public static YoutubeCommentThreads RequestPart(this YoutubeCommentThreads commentThreads, PartType partType) { return(CommentThreads(commentThreads.Settings.Clone(), commentThreads.PartTypes.Append(partType).ToArray())); }
public static YoutubeCommentThreads FormatPlainText(this YoutubeCommentThreads commentThreads) { return(commentThreads.TextFormat(Enums.TextFormat.PlainText)); }
public static YoutubeCommentThreads FormatHtml(this YoutubeCommentThreads commentThreads) { return(commentThreads.TextFormat(Enums.TextFormat.Html)); }
public static IEnumerable <YoutubeCommentThread> TakePage(this YoutubeCommentThreads commentThreads) { return(commentThreads.TakePages(1)); }
public static YoutubeCommentThreads OrderByRelevance(this YoutubeCommentThreads commentThreads) { return(commentThreads.OrderBy(CommentOrder.Relevance)); }
public static YoutubeCommentThreads OrderByTime(this YoutubeCommentThreads commentThreads) { return(commentThreads.OrderBy(CommentOrder.Time)); }