Updated Models
This commit is contained in:
parent
f2e852fcf0
commit
1e27081f52
@ -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)
|
||||
}
|
||||
|
@ -15,5 +15,6 @@ namespace EFB.Models.Route
|
||||
public IWaypoint Next { get; set; }
|
||||
public IWaypoint Previous { get; set; }
|
||||
public bool Visited { get; set; }
|
||||
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user