Code cleanup
This commit is contained in:
@ -1,8 +1,3 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace EFB.Models.Route
|
||||
{
|
||||
public interface IWaypoint
|
||||
@ -10,11 +5,11 @@ namespace EFB.Models.Route
|
||||
public string Name { get; set; }
|
||||
public float Longitude { get; set; }
|
||||
public float Latitude { get; set; }
|
||||
|
||||
|
||||
public string Airway { get; set; }
|
||||
public IWaypoint Next { get; set; }
|
||||
public IWaypoint Previous { get; set; }
|
||||
public bool Visited { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -1,23 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace EFB.Models.Route
|
||||
{
|
||||
public class NavaidModel:IWaypoint
|
||||
public class NavaidModel : IWaypoint
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public float Longitude { get; set; }
|
||||
public float 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;
|
||||
|
||||
public NavaidModel(string name, string airway, float longitude, float latitude){
|
||||
|
||||
public NavaidModel(string name, string airway, float longitude, float latitude)
|
||||
{
|
||||
Name = name;
|
||||
Airway = airway;
|
||||
Longitude = longitude;
|
||||
|
@ -1,27 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace EFB.Models.Route
|
||||
{
|
||||
public class WaypointModel:IWaypoint
|
||||
public class WaypointModel : IWaypoint
|
||||
{
|
||||
public string Name { 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, float longitude, float latitude){
|
||||
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