Created
July 24, 2010 14:07
-
-
Save karno/488709 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void Func() | |
{ | |
var b = new Basic("User_id", "User_pw"); | |
StreamingApi.OnReceivedStatus += new Action<TwitterStatus>(StreamingApi_OnReceivedStatus); | |
b.BeginStreaming(StreamingApi.StreamingType.filter, track: "Keywords"); | |
} | |
void StreamingApi_OnReceivedStatus(TwitterStatus obj) | |
{ | |
this.Invoke(new Action<string, string>((u, t) => listView1.Items.Add(new ListViewItem(new[] { u, t }))), obj.User.ScreenName, obj.Text); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment