This repository has been archived on 2022-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
DevOpsOpenHack/MobileApps/MyDriving/MyDriving.iOS/Views/Annotations/PoiAnnotation.cs
2022-11-03 16:41:13 -04:00

34 lines
964 B
C#

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
using CoreLocation;
using MyDriving.DataObjects;
namespace MyDriving.iOS
{
public class PoiAnnotation : BaseCustomAnnotation
{
public PoiAnnotation(POI pointOfInterest, CLLocationCoordinate2D coordinate) : base(coordinate)
{
PointOfInterest = pointOfInterest;
}
public POI PointOfInterest { get; set; }
public string Description
{
get
{
switch (PointOfInterest.POIType)
{
case POIType.HardAcceleration:
return "Hard Acceleration";
case POIType.HardBrake:
return "Hard Brake";
default:
return string.Empty;
}
}
}
}
}