Tweetinviを使用して Twitter ストリームを取得しています。非常に使いやすく使いやすいですが、Json を解析してツイートに変換することはできません。args.Json を (Newtonsoft.json を使用して) ツイートに変換/解析するのを手伝ってくれる人はいますか?
filteredStream.JsonObjectReceived += (sender, args) =>
{
var tweet = JsonConvert.DeserializeObject<Tweetinvi.Core.Interfaces.ITweet>(args.Json);
};
ITweet はインターフェイスであるため、上記の行は次のエラーで終了します。
Could not create an instance of type Tweetinvi.Core.Interfaces.ITweet. Type is an interface or abstract class and cannot be instantiated