Several changes - updated string to route to include coordinates - updated model for flight sim to only contain the closest point - User model now tracks route status... departure etc
This commit is contained in:
@ -8,8 +8,8 @@ namespace EFB.Models.Route
|
||||
public interface IWaypoint
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Longitude { get; set; }
|
||||
public string Latitude { get; set; }
|
||||
public float Longitude { get; set; }
|
||||
public float Latitude { get; set; }
|
||||
|
||||
public string Airway { get; set; }
|
||||
public IWaypoint Next { get; set; }
|
||||
|
@ -8,8 +8,8 @@ namespace EFB.Models.Route
|
||||
public class NavaidModel:IWaypoint
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Longitude { get; set; }
|
||||
public string Latitude { get; set; }
|
||||
public float Longitude { get; set; }
|
||||
public float Latitude { get; set; }
|
||||
public int Frequency { get; set; }
|
||||
|
||||
public string Airway { get; set; }
|
||||
@ -17,9 +17,11 @@ namespace EFB.Models.Route
|
||||
public IWaypoint Previous { get; set; } = null;
|
||||
public bool Visited { get; set; } = false;
|
||||
|
||||
public NavaidModel(string name, string airway){
|
||||
public NavaidModel(string name, string airway, float longitude, float latitude){
|
||||
Name = name;
|
||||
Airway = airway;
|
||||
Longitude = longitude;
|
||||
Latitude = latitude;
|
||||
}
|
||||
}
|
||||
}
|
@ -8,17 +8,19 @@ namespace EFB.Models.Route
|
||||
public class WaypointModel:IWaypoint
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Longitude { get; set; }
|
||||
public string Latitude { get; set; }
|
||||
public float Longitude { get; set; }
|
||||
public float 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; }
|
||||
|
||||
public WaypointModel(string name, string airway){
|
||||
public WaypointModel(string name, string airway, float longitude, float latitude){
|
||||
Name = name;
|
||||
Airway = airway;
|
||||
Longitude = longitude;
|
||||
Latitude = latitude;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user