public void Search(string query) { this.Result = new TwitterSearchResult { Tweets = new List<Tweet> { new Tweet { Text = "Just booked my codestock trip. My third trip to the Knox convention... #codestock11", ProfileImageUrl = "/Images/unisex-48x48.png", FromUser = "******", CreatedAt = DateTime.Parse("Tue, 03 May 2012 01:19:06 +0000"), Source = @"<a href="http://twitter.com/#!/download/iphone" rel="nofollow">Twitter for iPhone</a>" }, new Tweet { Text = "@rickborup #SWF 2012 - I've sure got the fever. BTW- Are you going to CodeStock in June?", ProfileImageUrl = "http://a2.twimg.com/profile_images/640539890/Geoff_-_Jan_18_2010__2a__normal.jpg", FromUser = "******", ToUser = "******", CreatedAt = DateTime.Parse("Tue, 03 May 2012 01:19:06 +0000"), Source = @"lt;a href="http://www.echofon.com/" rel="nofollow">Echofon</a>" } } }; if (null != AfterCompleted) AfterCompleted(new CompletedEventArgs()); }
protected override void AfterRequestCompleted(string result) { RaiseCompleteAfter( ()=> this.Result = ParseJson(result)); }