EFB/Models/UserModel.cs
Luke Else e134751745 Updated UserModel and started on making the polling http calls to the server.
Started with the Polling command:

What I'm thinking is that I should have the command consecutively make calls every 5 seconds, not sure how it will work without hanging the thread, will figure out tomorrow :)
2021-12-27 21:15:55 +00:00

30 lines
880 B
C#

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; }
public TokenModel Token { get; set; } = null;
//Contains the most recent route generated by the user through the App
public RouteModel Route { get; set; } = null;
//Contains the most recently stored position of the user in the simulator
public object SimPosition { get; set; } = null;
}
}