Creating and implementing the TwitterWebService class
In this section, we will create the TwitterWebService
class that will inherit from our ITwitterWebService
interface and implement the underlying instance methods that we declared within our interface class. They will help us to communicate with our app that we created within the Twitter Developer Portal.
Let's start by creating the TwitterWebService
class for our TrackMyWalks
app by performing the following steps:
- Firstly, right-click on the
Services
folder and chooseAdd | New File...
from the pop-up menu. - Next, create a new
Empty Class
calledTwitterWebService
within theServices
folder, as you did in the section entitled Creating and implementing the TwitterAuthDetails class, located within this chapter. - Then, ensure that the
TwitterWebService.cs
file, which is located within theServices
folder, is displayed within the code editor, and enter the following code snippet:
// // TwitterWebService.cs // TwitterWebService Class...