BoxKite.Twitter.TweetExtensions.ReplyToTweet C# (CSharp) Метод

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

Sends a Tweet in reply to another tweet
ref: https://dev.twitter.com/docs/api/1.1/post/statuses/update
public static ReplyToTweet ( this session, Tweet tweet, string text, double latitude = 0.0, double longitude = 0.0, string placeId = "" ) : Task
session this
tweet BoxKite.Twitter.Models.Tweet Tweet replying to
text string Text of the reply
latitude double Latitude
longitude double Longitude
placeId string A place in the world identified by a Twitter place ID. Place IDs can be retrieved from geo/reverse_geocode.
Результат Task
        public async static Task<Tweet> ReplyToTweet(this IUserSession session, Tweet tweet, string text, double latitude=0.0, double longitude = 0.0, string placeId="")
        {
             var parameters = new TwitterParametersCollection
                                {
                                     {"status", text },
                                     {"in_reply_to_status_id", tweet.Id.ToString()}
                                 };
            parameters.Create(place_id:placeId);

            if (Math.Abs(latitude) > 0.0 && Math.Abs(longitude) > 0.0)
            {
                parameters.Add("lat", latitude.ToString());
                parameters.Add("long", longitude.ToString());
            }

            return await session.PostAsync(TwitterApi.Resolve("/1.1/statuses/update.json"), parameters)
                          .ContinueWith(c => c.MapToSingle<Tweet>());
        }