O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Leveraging a Custom Twitter Service

A custom Twitter service is used for all communication with the Twitter web API. The service also provides the capability to cache the results of calls to Twitter using a local database.

The viewmodel, which presents the Twitter timeline information, consumes the Twitter service using an ITwitterService interface.

Image

The ITwitterService contains two methods designed to execute asynchronously. They are as follows:

Image GetTimeline(string screenName,                        Action<ResultEventArgs ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required