O'Reilly logo

Mastering Xamarin UI Development - Second Edition by Steven F. Daniel

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

Creating and implementing the RestWebService class

In this section, we will take a look at how to create the RestWebService class that will inherit from our IRestWebService interface and implement the underlying instance methods that we declared within our interface class to help us communicate with our SQL Server database, so that we can perform CRUD operations that will be used by our instances of ViewModel and ContentPage (views).

Let's start by creating the RestWebService class for our TrackMyWalks app by going through the following steps:

  1. Right-click on the Services folder and choose Add | New File... from the pop-up menu.
  1. Then, choose the Empty Class option under the General section and enter RestWebService as the name of the class ...

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