In this section, we'll take a look at how to create the IRestWebService class, which will essentially contain various instance methods that will be used by our RestWebService class. The advantage of creating an IRestWebService class is that it's much easier to add additional class instance methods that will be used by those instances of ViewModel and ContentPage (views) that utilize this interface.
Let's start by creating the IRestWebService interface for our TrackMyWalks app by going through the following steps:
- Ensure that the TrackMyWalks solution is open within the Visual Studio for Mac IDE.
- Next, right-click on the Services folder and choose Add | New File... from the pop-up menu, ...