2021-11-07 20:19:24 +00:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
namespace EFB.Models
|
|
|
|
{
|
|
|
|
public class UserModel
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
User - Contains relevant user information as well as current session data such
|
|
|
|
|
|
|
|
#API Token
|
|
|
|
#Route
|
|
|
|
#Last Recorded Sim Position
|
|
|
|
|
|
|
|
This is the model that is implemented into MongoDB
|
|
|
|
*/
|
|
|
|
public object Id { get; init; }
|
|
|
|
public string EMail { get; init; }
|
2022-01-09 15:36:52 +00:00
|
|
|
public TokenModel UserToken { get; set; } = null;
|
2021-11-07 20:19:24 +00:00
|
|
|
|
|
|
|
//Contains the most recent route generated by the user through the App
|
2022-01-31 12:10:06 +00:00
|
|
|
public string Route { get; set; }
|
2022-01-09 15:36:52 +00:00
|
|
|
public TokenModel RouteToken { get; set; } = null;
|
2021-11-07 20:19:24 +00:00
|
|
|
|
2022-02-09 19:08:56 +00:00
|
|
|
//Contains the Departure and Arrival Charts for the user's route
|
|
|
|
public ChartModel DepartureCharts { get; set; }
|
|
|
|
public ChartModel ArrivalCharts { get; set; }
|
|
|
|
|
2021-11-07 20:19:24 +00:00
|
|
|
//Contains the most recently stored position of the user in the simulator
|
|
|
|
public object SimPosition { get; set; } = null;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|