O'Reilly logo

Data-Driven Services with Silverlight 2 by John Papa

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

Case Study: SilverTwit

The following example is an application called SilverTwit that exposes some of the most-used features of the Twitter API in a Silverlight 2 client application. SilverTwit pools many of the topics we’ve discussed in this book to build a Silverlight 2 client interface that uses data-binding techniques, builds a RESTful service, invokes remote web service calls asynchronously, uses type converters, handles cross-domain invocation, and sends GET and POST requests, among many other features. This section will go over the architecture of the application and jump into the details of its highlights. The full source code for the SilverTwit solution is located in the code for this chapter. SilverTwit exposes only some of the most commonly used features of the Twitter RESTful API. You can easily expand it to encompass many of the Twitter API features by extending the source code.

Note

The SilverTwit solution is included in this chapter’s code samples. To run this code, you must first change the constants’ values at the top of the Page.xaml.cs file to use your Twitter credentials.

SilverTwit Architecture

The SilverTwit application has two major components, shown in Figure 9-6. The user interface is represented with a Silverlight 2 client application. It handles all interaction with the user and presents the data from the web services. It also communicates directly with the SilverTwit REST-friendly web services component. The Twitter API requires that credentials be passed ...

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