From 5677e1d13cc503e4a4f9f254cd36eab4c3d777f0 Mon Sep 17 00:00:00 2001 From: Thomas Imart Date: Tue, 12 Jan 2016 14:33:58 +0000 Subject: [PATCH 1/3] Issue #84 - Connection error message is now directly set in the TwitterException --- Tweetinvi.Streams/StreamTask.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tweetinvi.Streams/StreamTask.cs b/Tweetinvi.Streams/StreamTask.cs index bbdcfcf8e..2141a0f74 100644 --- a/Tweetinvi.Streams/StreamTask.cs +++ b/Tweetinvi.Streams/StreamTask.cs @@ -121,6 +121,11 @@ public void Start() var isJsonResponseValid = json.IsMatchingJsonFormat(); if (!isJsonResponseValid) { + if (json != null) + { + throw new WebException(json); + } + if (TryHandleInvalidResponse(numberOfRepeatedFailures)) { ++numberOfRepeatedFailures; From e2977e5421d0b2d842c81d387b069a7ee0ceaff0 Mon Sep 17 00:00:00 2001 From: Thomas Imart Date: Tue, 12 Jan 2016 16:37:48 +0000 Subject: [PATCH 2/3] Fixed issue #73 - Retweeted_Count is now properly handled when the value received is null --- Tweetinvi.Logic/DTO/TweetDTO.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Tweetinvi.Logic/DTO/TweetDTO.cs b/Tweetinvi.Logic/DTO/TweetDTO.cs index b6b76de36..1f1275859 100644 --- a/Tweetinvi.Logic/DTO/TweetDTO.cs +++ b/Tweetinvi.Logic/DTO/TweetDTO.cs @@ -105,6 +105,7 @@ public long Id public ITweetDTO QuotedTweetDTO { get; set; } [JsonProperty("retweet_count")] + [JsonConverter(typeof(JsonPropertyConverterRepository))] public int RetweetCount { get; set; } [JsonProperty("retweeted")] From d4932ce3aefbe5993932f5d8f614105183531afe Mon Sep 17 00:00:00 2001 From: ON-MX Date: Thu, 14 Jan 2016 14:57:06 +0300 Subject: [PATCH 3/3] add missing UnFavorite --- Tweetinvi/Tweet.cs | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Tweetinvi/Tweet.cs b/Tweetinvi/Tweet.cs index 08c3a62c4..2fed9d9f3 100644 --- a/Tweetinvi/Tweet.cs +++ b/Tweetinvi/Tweet.cs @@ -247,6 +247,24 @@ public static bool FavoriteTweet(long tweetId) { return TweetController.FavoriteTweet(tweetId); } + + // UnFavorite Tweet + + /// + /// UnFavorite a specific tweet + /// + public static bool UnFavoriteTweet(ITweet tweet) + { + return TweetController.UnFavoriteTweet(tweet); + } + + /// + /// UnFavorite a specific tweet + /// + public static bool UnFavoriteTweet(long tweetId) + { + return TweetController.UnFavoriteTweet(tweetId); + } // Generate OEmbedTweet @@ -268,4 +286,4 @@ public static IOEmbedTweet GenerateOEmbedTweet(long tweetId) #endregion } -} \ No newline at end of file +}