In the previous section, we created our data service base interface class for our data service, and we defined several different instance methods that our class will be utilizing. This will essentially be used by each of our ViewModels
along with the Views (pages). Let's now start to implement the code required for our WalkDataService
class, by performing the following steps:
Create an empty class within the
Services
folder, by choosing Add | New File..., as you did when creating theDataService
interface in the previous section entitled Creating the DataService API for the TrackMyWalks app located within this chapter.Then, enter in
WalkDataService
for the name of the new class that you want to create, and click on the New button to allow the wizard to proceed and create the new file.Next, ensure that the
WalkDataService.cs
file is displayed within the code editor, and enter the following code snippet:// //...