add openhack files
This commit is contained in:
16
apis/poi/web/Models/BaseDataObject.cs
Normal file
16
apis/poi/web/Models/BaseDataObject.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace poi.Models
|
||||
{
|
||||
public class BaseDataObject
|
||||
{
|
||||
public string Id { get; set; }
|
||||
|
||||
public BaseDataObject()
|
||||
{
|
||||
Id = Guid.NewGuid().ToString();
|
||||
}
|
||||
}
|
||||
}
|
24
apis/poi/web/Models/POI.cs
Normal file
24
apis/poi/web/Models/POI.cs
Normal file
@ -0,0 +1,24 @@
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for details.
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace poi.Models
|
||||
{
|
||||
|
||||
public enum POIType
|
||||
{
|
||||
HardAcceleration = 1,
|
||||
HardBrake = 2
|
||||
}
|
||||
|
||||
public class POI : BaseDataObject
|
||||
{
|
||||
public string TripId { get; set; }
|
||||
public double Latitude { get; set; }
|
||||
public double Longitude { get; set; }
|
||||
public POIType PoiType { get; set; }
|
||||
public DateTime Timestamp { get; set; }
|
||||
public bool Deleted { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user