Creating and implementing the TwitterWebService interface
In this section, we will create the ITwitterWebService
class, which will essentially contain various instance methods that will be used by our TwitterWebService
class. The advantage of creating an ITwitterWebService
class is that it's much easier to add additional class instance methods that will be used by other classes that utilize this interface.
Let's start by creating the ITwitterWebService
interface for our TrackMyWalks
app by performing the following steps:
- Right-click on the
Services
folder, and chooseAdd | New File...
from the pop-up menu, as you did in the section entitled Creating and implementing the LocationService interfacewithinChapter 7, Adding Location-based Features Within Your App.
- Then, choose the
Empty Interface
option under theGeneral
section and enterITwitterWebService
for the name of the interface to be created, as shown in the following screenshot:

Creating the ITwitterWebService Interface
- Next, click on the
New...