Example #1
0
        public static YoutubeCommentThreads TextFormat(this YoutubeCommentThreads commentThreads, TextFormat format)
        {
            var settings = commentThreads.Settings.Clone();

            settings.TextFormat = format;
            return(CommentThreads(settings, commentThreads.PartTypes.ToArray()));
        }
Example #2
0
        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()));
        }
Example #3
0
        public static YoutubeCommentThreads OrderBy(this YoutubeCommentThreads commentThreads, CommentOrder order)
        {
            var settings = commentThreads.Settings.Clone();

            settings.Order = order;
            return(CommentThreads(settings, commentThreads.PartTypes.ToArray()));
        }
Example #4
0
        public static YoutubeCommentThreads SearchTerms(this YoutubeCommentThreads commentThreads, string s)
        {
            var settings = commentThreads.Settings.Clone();

            settings.SearchTerms = s;
            return(CommentThreads(settings, commentThreads.PartTypes.ToArray()));
        }
Example #5
0
        public static YoutubeCommentThreads ForChannelIdAll(this YoutubeCommentThreads commentThreads, string id)
        {
            var settings = commentThreads.Settings.Clone();

            settings.AllThreadsRelatedToChannelId = id;
            return(CommentThreads(settings, commentThreads.PartTypes.ToArray()));
        }
Example #6
0
        public static YoutubeCommentThreads ForVideoId(this YoutubeCommentThreads commentThreads, string id)
        {
            var settings = commentThreads.Settings.Clone();

            settings.VideoId = id;
            return(CommentThreads(settings, commentThreads.PartTypes.ToArray()));
        }
Example #7
0
 public static IEnumerable <YoutubeCommentThread> TakePages(this YoutubeCommentThreads commentThreads, int pageCount)
 {
     return(commentThreads.Take(commentThreads.ResultsPerPage.GetValueOrDefault(ResultsPerPage) * pageCount));
 }
Example #8
0
 public static YoutubeCommentThreads RequestAllParts(this YoutubeCommentThreads commentThreads)
 {
     return(commentThreads.RequestReplies().RequestSnippet());
 }
Example #9
0
 public static YoutubeCommentThreads RequestSnippet(this YoutubeCommentThreads commentThreads)
 {
     return(commentThreads.RequestPart(PartType.Snippet));
 }
Example #10
0
 public static YoutubeCommentThreads RequestReplies(this YoutubeCommentThreads commentThreads)
 {
     return(commentThreads.RequestPart(PartType.Replies));
 }
Example #11
0
 public static YoutubeCommentThreads RequestPart(this YoutubeCommentThreads commentThreads, PartType partType)
 {
     return(CommentThreads(commentThreads.Settings.Clone(), commentThreads.PartTypes.Append(partType).ToArray()));
 }
Example #12
0
 public static YoutubeCommentThreads FormatPlainText(this YoutubeCommentThreads commentThreads)
 {
     return(commentThreads.TextFormat(Enums.TextFormat.PlainText));
 }
Example #13
0
 public static YoutubeCommentThreads FormatHtml(this YoutubeCommentThreads commentThreads)
 {
     return(commentThreads.TextFormat(Enums.TextFormat.Html));
 }
Example #14
0
 public static IEnumerable <YoutubeCommentThread> TakePage(this YoutubeCommentThreads commentThreads)
 {
     return(commentThreads.TakePages(1));
 }
Example #15
0
 public static YoutubeCommentThreads OrderByRelevance(this YoutubeCommentThreads commentThreads)
 {
     return(commentThreads.OrderBy(CommentOrder.Relevance));
 }
Example #16
0
 public static YoutubeCommentThreads OrderByTime(this YoutubeCommentThreads commentThreads)
 {
     return(commentThreads.OrderBy(CommentOrder.Time));
 }