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 ...
Get Xamarin Mobile Application Development for Android - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.