Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

Updated Release: Tweetinvi 0.9.7.x

$
0
0

Tweetinvi Update 0.9.7.0

Quick Overview

Account and Friendships

In Tweetinvi 0.9.7.x the major update was the complete implementation of the Friendship API.
As part of this enhancement I moved some features from the static User class into the Account and Friendship static classes.

New features

Account

// Account Settingsvar accountSettings = Account.GetCurrentAccountSettings();

Friendship

// List users who wants to follow your current accountSettingsvar friendshipRequests = Account.GetUsersRequestingFriendship();

foreach (var friendshipRequest in friendshipRequests)
{
	Console.WriteLine("{0} requested to be your friend!", friendshipRequest.Name);
}

Moved Functions

  • GetMutedUserIds
  • MuteUser
  • UnMuteUser

UserStream Update

In order to add a missing of the UserStream class, Tweetinvi is now handling the AccessRevoked message. This message is sent by Twitter when the Token used by the stream to connect to Twitter is revoked. This message is usually followed by a disconnect message.

var us = Stream.CreateUserStream();
us.AccessRevoked += (sender, args) =>
{
    Console.WriteLine("Application {0} had its access revoked!", args.Info.ApplicationName);
};

Tweet Entities

Tweet Entities have been improved. Instead of returning either the Extended Entities or Legacy Entities we Tweetinvi is now aggregating the information of both and returns this as single object.

MultiThreading Performances

Version 0.9.7.x improved the global performances of WebRequests for highly multi threaded applications.

Bug Fixes

  • HttpClient WebRequests TaskCancelledException is now correctly Handled
  • HttpClient is now handling exception status code as exception.
  • Fixed a "major" bug that could result in static classes to be instantiated twice in an application life cycle.

Special Thanks

  • To JKeegan for his great help identifying major issues and reporting performance issues.
  • To KeesCBakker for reporting TwitterEntities bugs.

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>