Added Base Models for EBF Application
This commit is contained in:
19
Models/Route/IWaypoint.cs
Normal file
19
Models/Route/IWaypoint.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace EFB.Models.Route
|
||||
{
|
||||
public interface IWaypoint
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Longitude { get; set; }
|
||||
public string Latitude { get; set; }
|
||||
|
||||
public string Airway { get; set; }
|
||||
public IWaypoint Next { get; set; }
|
||||
public IWaypoint Previous { get; set; }
|
||||
public bool Visited { get; set; }
|
||||
}
|
||||
}
|
21
Models/Route/NavaidModel.cs
Normal file
21
Models/Route/NavaidModel.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace EFB.Models.Route
|
||||
{
|
||||
public class NavaidModel:IWaypoint
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Longitude { get; set; }
|
||||
public string Latitude { get; set; }
|
||||
public int Frequency { get; set; }
|
||||
|
||||
public string Airway { get; set; }
|
||||
public IWaypoint Next { get; set; } = null;
|
||||
public IWaypoint Previous { get; set; } = null;
|
||||
public bool Visited { get; set; } = false;
|
||||
|
||||
}
|
||||
}
|
35
Models/Route/WaypointModel.cs
Normal file
35
Models/Route/WaypointModel.cs
Normal file
@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace EFB.Models.Route
|
||||
{
|
||||
public class WaypointModel:IWaypoint
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Longitude { get; set; }
|
||||
public string Latitude { get; set; }
|
||||
|
||||
public string Airway { get; set; }
|
||||
public IWaypoint Next { get; set; } = null;
|
||||
public IWaypoint Previous { get; set; } = null;
|
||||
public bool Visited { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user