Google API for .NET architecture (Part 3)

Part 1: Google API for .NET architecture (Part 1)

Part 2: Google API for .NET architecture (Part 2)

Today, I will describe a little about Gapi4net architecture. Next, I will write 2 examples, one in ASP.NET MVC 3 Preview 1, and one in WPF. Gapi4net did not have persistence layer, it only call some of services from Google and processing returned JSON data. For clearly, I have drawn a Gapi4net architecture as below:


And the solution structure is


As you see, it is really simple, only get data from Google and processing it. After data is processed completing, it will be mapped to Gapi4net's object. And the user only need to use this object for display according to her/his request.

Then I describe 2 examples that use Gapi4net inside it.  It only write very simple, if you write your own application, you will write it more complicate. Below is interface of application write on ASP.NET MVC:


And then I show for you the interface of application write on WPF, it is really a translate language engine


In the second application on WPF, I used MVVM pattern for binding between ViewModel and View. For more information you can download Gapi4net and read its code.

Hope you happy when use Gapi4net. In future, I going to support this library for Silverlight, but not now. Good bye and see you next time.

1 Comment

Comments have been disabled for this content.