private static void GetResponse(TwitterResult response) { var identity = response.AsUser(); if (identity != null) { Console.WriteLine("{0} authenticated successfully.", identity.ScreenName); } else { var error = response.AsError(); if (error != null) { Console.WriteLine(error.ErrorMessage); } } }
private void RaiseStreamResults(TwitterResult result) { var statuses = result.AsStatuses(); var args = new TwitterStreamResultEventArgs(statuses); OnStreamResult(args); }