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 ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.