public Task <PagedResponse <IBoard> > GetSuggestedBoardsAsync(string cursor, int limit) { // NOTE: This endpoint uses 'count' instead of 'limit' for some reason var responseTask = GetPagedAsync <IBoard>("me/boards/suggested", new RequestOptions(BoardFields, cursor, new { count = limit })); return(PagedResponse <IBoard> .FromTask(responseTask)); }
public Task <PagedResponse <IUserPin> > SearchPinsAsync(string query, string cursor, int limit) { var fields = PinFields.Where(x => !x.StartsWith("creator")); var responseTask = GetPagedAsync <IUserPin>($"me/search/pins", new RequestOptions(query, fields, cursor, limit)); return(PagedResponse <IUserPin> .FromTask(responseTask)); }
Task <PagedResponse <IUserPin> > IMeApi.GetPinsAsync(string cursor, int limit) { var fields = PinFields.Where(x => !x.StartsWith("creator")); var responseTask = GetPagedAsync <IUserPin>("me/pins", new RequestOptions(fields, cursor, limit)); return(PagedResponse <IUserPin> .FromTask(responseTask)); }
public Task <PagedResponse <IUserPin> > SearchPinsAsync(string query, string cursor, int limit) { var responseTask = GetPagedAsync <IUserPin>($"me/search/pins", new RequestOptions(query, PinFields, cursor, limit)); return(PagedResponse <IUserPin> .FromTask(responseTask)); }
public Task <PagedResponse <IUserBoard> > SearchBoardsAsync(string query, string cursor, int limit) { var responseTask = GetPagedAsync <IUserBoard>($"me/search/boards", new RequestOptions(query, BoardFields, cursor, limit)); return(PagedResponse <IUserBoard> .FromTask(responseTask)); }
public Task <PagedResponse <IUser> > GetFollowingUsersAsync(string cursor, int limit) { var responseTask = GetPagedAsync <IUser>("me/following/users", new RequestOptions(cursor, limit)); return(PagedResponse <IUser> .FromTask(responseTask)); }
public Task <PagedResponse <IBoard> > GetFollowingBoardsAsync(string cursor, int limit) { var responseTask = GetPagedAsync <IBoard>("me/following/boards", new RequestOptions(BoardFields, cursor, limit)); return(PagedResponse <IBoard> .FromTask(responseTask)); }
Task <PagedResponse <IUserPin> > IMeApi.GetPinsAsync(string cursor, int limit) { var responseTask = GetPagedAsync <IUserPin>("me/pins", new RequestOptions(PinFields, cursor, limit)); return(PagedResponse <IUserPin> .FromTask(responseTask)); }
public Task <PagedResponse <T> > GetPinsAsync <T>(string board, IEnumerable <string> fields, string cursor, int limit) { var responseTask = GetPagedAsync <T>($"boards/{board}/pins", new RequestOptions(fields, cursor, limit)); return(PagedResponse <T> .FromTask(responseTask)); }