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

Get Mastering Xamarin UI Development - Second Edition 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.