Skip to content

Commit

Permalink
Merge branch 'Tweetinvi-0.9.10.1' of https://github.com/linvi/tweetinvi
Browse files Browse the repository at this point in the history
… into Tweetinvi-0.9.10.1
  • Loading branch information
linvi committed Jan 17, 2016
2 parents 41281d6 + d4932ce commit 914de43
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions Tweetinvi.Logic/DTO/TweetDTO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down
5 changes: 5 additions & 0 deletions Tweetinvi.Streams/StreamTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ public void Start()
var isJsonResponseValid = json.IsMatchingJsonFormat();
if (!isJsonResponseValid)
{
if (json != null)
{
throw new WebException(json);
}

if (TryHandleInvalidResponse(numberOfRepeatedFailures))
{
++numberOfRepeatedFailures;
Expand Down
20 changes: 19 additions & 1 deletion Tweetinvi/Tweet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,24 @@ public static bool FavoriteTweet(long tweetId)
{
return TweetController.FavoriteTweet(tweetId);
}

// UnFavorite Tweet

/// <summary>
/// UnFavorite a specific tweet
/// </summary>
public static bool UnFavoriteTweet(ITweet tweet)
{
return TweetController.UnFavoriteTweet(tweet);
}

/// <summary>
/// UnFavorite a specific tweet
/// </summary>
public static bool UnFavoriteTweet(long tweetId)
{
return TweetController.UnFavoriteTweet(tweetId);
}

// Generate OEmbedTweet

Expand All @@ -268,4 +286,4 @@ public static IOEmbedTweet GenerateOEmbedTweet(long tweetId)

#endregion
}
}
}

0 comments on commit 914de43

Please sign in to comment.