/// <summary> /// <inheritdoc /> /// </summary> /// <returns></returns> public PopularPostsBuilder InitializeWithDefaultValues() { PostType = new string[] { "post" }; Limit = 10; Freshness = false; Offset = 0; OrderBy = OrderPopularPostsBy.Views; Range = TimeRange.Last24Hours; Unit = TimeUnit.Hour; TimeQuanity = 24; TaxonomyFilter = "category"; return(this); }
/// <summary> /// Set the sorting option of the popular posts. /// </summary> /// <param name="order"></param> /// <returns></returns> public PopularPostsBuilder WithPopularPostsOrder(OrderPopularPostsBy order) { OrderBy = order; return(this); }