Updated Models

This commit is contained in:
Luke Else 2022-01-09 15:36:52 +00:00
parent f2e852fcf0
commit 1e27081f52
5 changed files with 13 additions and 16 deletions

View File

@ -64,7 +64,7 @@ namespace EFB.Controllers
{
UserModel user = new UserModel{
EMail = email,
Token = new TokenModel{
UserToken = new TokenModel{
TokenValue = login.access_token,
Expiration = DateTime.UtcNow.AddSeconds(login.expires_in)
}

View File

@ -15,5 +15,6 @@ namespace EFB.Models.Route
public IWaypoint Next { get; set; }
public IWaypoint Previous { get; set; }
public bool Visited { get; set; }
}
}

View File

@ -17,5 +17,10 @@ namespace EFB.Models.Route
public IWaypoint Previous { get; set; } = null;
public bool Visited { get; set; } = false;
public NavaidModel(string name, string airway, int frequency){
Name = name;
Airway = Airway;
Frequency = frequency;
}
}
}

View File

@ -16,20 +16,10 @@ namespace EFB.Models.Route
public IWaypoint Previous { get; set; } = null;
public bool Visited { get; set; }
public WaypointModel(string name, string airway){
Name = name;
Airway = Airway;
}
}
}

View File

@ -18,10 +18,11 @@ namespace EFB.Models
*/
public object Id { get; init; }
public string EMail { get; init; }
public TokenModel Token { get; set; } = null;
public TokenModel UserToken { get; set; } = null;
//Contains the most recent route generated by the user through the App
public RouteModel Route { get; set; } = null;
public TokenModel RouteToken { get; set; } = null;
//Contains the most recently stored position of the user in the simulator
public object SimPosition { get; set; } = null;