BoxKite.Twitter.FavouritesExtensions.GetFavourites C# (CSharp) 메소드

GetFavourites() 공개 정적인 메소드

https://dev.twitter.com/docs/api/1.1/get/favorites/list Returns the count most recent Tweets favorited by the authenticating or specified user. If user_id and screen_name is left blank, current auth'd user favourites are returned Entities are always returned
public static GetFavourites ( this session, string screenName = "", int userId, long sinceId, long maxId, int count = 20 ) : Task>
session this
screenName string The screen name of the user for whom to return results for
userId int The ID of the user for whom to return results for
sinceId long Returns results with an ID greater than
maxId long Returns results with an ID less than (that is, older than) or equal to the specified
count int Specifies the number of records to retrieve. Must be less than or equal to 200. Defaults to 20.
리턴 Task>
        public async static Task<TwitterResponseCollection<Tweet>> GetFavourites(this ITwitterSession session, string screenName = "", int userId = 0, long sinceId = 0, long maxId = 0, int count = 20 )
        {
            var parameters = new TwitterParametersCollection();
            parameters.Create(count:count,include_entities:true,since_id:sinceId,max_id:maxId, user_id:userId, screen_name:screenName);

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