In the previous section, we created a WalkWebService
class that provides us with a means of sending HTTP requests to our TrackMyWalks
Microsoft Azure database. In this section, we will begin by creating a data service class that will allow us to send and receive responses back from our API, in Json
format which will update the WalkEntries
database model so our application can use this.
We will begin by creating the interface for our data service that can be used to communicate with each of the ViewModels
that our TrackMyWalks
application utilizes. Let's now start to implement the code required for our IWalkDataService
base-class model, by performing the following steps:
Create an empty interface within the
Services
folder. If you can't remember how to do this, you can refer to the section entitled Creating the navigation service interface for the TrackMyWalks app within Chapter 3 , Navigating within the MVVM Model - The Xamarin.Forms Way...