BoxKite.Twitter.ListExtensions.GetListTimeline C# (CSharp) Метод

GetListTimeline() публичный статический Метод

Returns a timeline of tweets authored by members of the specified list. Retweets are included by default.
ref: https://dev.twitter.com/docs/api/1.1/get/lists/statuses
public static GetListTimeline ( this session, long listId, string slug, long ownerId, string ownerScreenName = "", long sinceId, int count = 20, long maxId, bool includeRetweets = true ) : Task>
session this
listId long The numerical id of the list.
slug string You can identify a list by its slug instead of its numerical id. If you decide to do so, note that you'll also have to specify the list owner using the owner_id or owner_screen_name parameters.
ownerId long The user ID of the user who owns the list being requested by a slug.
ownerScreenName string The screen name of the user who owns the list being requested by a slug.
sinceId long Returns results with an ID greater than (that is, more recent than) the specified ID.
count int Specifies the number of results to retrieve per "page."
maxId long Returns results with an ID less than (that is, older than) or equal to the specified ID.
includeRetweets bool the list timeline will contain native retweets (if they exist) in addition to the standard stream of tweets.
Результат Task>
        public static async Task<TwitterResponseCollection<Tweet>> GetListTimeline(this ITwitterSession session, long listId, string slug, long ownerId = 0, string ownerScreenName = "", long sinceId = 0, int count = 20, long maxId = 0, bool includeRetweets = true)
        {
            var parameters = new TwitterParametersCollection
                                 {
                                     {"include_rts", includeRetweets.ToString()},
                                 };
            parameters.Create(list_id:listId, slug:slug, owner_id:ownerId, owner_screen_name:ownerScreenName, since_id:sinceId, max_id:maxId);

            return await session.GetAsync(TwitterApi.Resolve("/1.1/lists/statuses.json"), parameters)
                          .ContinueWith(c => c.MapToMany<Tweet>());
        }