Creating the PointOfInterest apps entity class
The first class that is needed is the one that represents the primary focus of the application, a PointofInterest
class. POIApp
will allow the following attributes to be captured for the Point Of Interest app:
Id
Name
Description
Address
Latitude
Longitude
Image
The POI entity class can be nothing more than a simple .NET class, which houses these attributes.
To create a POI entity class, perform the following steps:
Select the
POIApp
project from the Solution Explorer in Xamarin Studio. Select thePOIApp
project and not the solution, which is the top-level node in the Solution pad.Right-click on it and select New File.
On the left-hand side of the New File dialog box, select General.
At the top of the template list, in the middle of the dialog box, select Empty Class (C#).
Enter the name
PointOfInterest
and click on OK. The class will be created in thePOIApp
project folder.Change the visibility of the class to public and fill in the attributes...