Exemplo n.º 1
0
 public virtual IPagedList<Comment> GetUserMentions(IEnumerable<int> userIds, UserMentionsOptions options)
 {
     var response = MakeRequest<CommentResponse>("users", new string[] { userIds.Vectorize(), "mentioned" }, new
     {
         key = apiKey,
         page = options.Page ?? null,
         pagesize = options.PageSize ?? null,
         filter = options.Filter,
         sort = options.SortBy.ToString().ToLower(),
         order = GetSortDirection(options.SortDirection),
         fromdate = options.FromDate.HasValue ? (long?)options.FromDate.Value.ToUnixTime() : null,
         todate = options.ToDate.HasValue ? (long?)options.ToDate.Value.ToUnixTime() : null,
         min = options.Min ?? null,
         max = options.Max ?? null
     });
     return new PagedList<Comment>(response.Comments, response);
 }
Exemplo n.º 2
0
 public virtual IPagedList<Comment> GetUserMentions(int userId, UserMentionsOptions options)
 {
     return GetUserMentions(userId.ToArray(), options);
 }