Added session system

This commit is contained in:
Marcel Baumgartner
2023-03-06 18:36:00 +01:00
parent e6ac19c4ec
commit a480b35fe6
8 changed files with 248 additions and 13 deletions

View File

@@ -1,14 +1,15 @@
using Microsoft.AspNetCore.Components;
using Moonlight.App.Database.Entities;
using Moonlight.App.Services.Interop;
namespace Moonlight.App.Models.Misc;
public class Session
{
public string Ip { get; set; }
public string Url { get; set; }
public string Device { get; set; }
public int UserId { get; set; }
public string Ip { get; set; } = "N/A";
public string Url { get; set; } = "N/A";
public string Device { get; set; } = "N/A";
public User? User { get; set; }
public DateTime CreatedAt { get; set; }
public NavigationManager Navigation { get; set; }
public AlertService AlertService { get; set; }