34 lines
782 B
C#
34 lines
782 B
C#
using System.Net;
|
|
|
|
namespace OliverBooth.Common.Data.Web.Users;
|
|
|
|
internal sealed class Session : ISession
|
|
{
|
|
/// <inheritdoc />
|
|
public DateTimeOffset Created { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public DateTimeOffset Expires { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public Guid Id { get; private set; } = Guid.NewGuid();
|
|
|
|
/// <inheritdoc />
|
|
public IPAddress IpAddress { get; set; } = IPAddress.None;
|
|
|
|
/// <inheritdoc />
|
|
public DateTimeOffset LastAccessed { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public bool RequiresTotp { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public DateTimeOffset Updated { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public string UserAgent { get; set; } = string.Empty;
|
|
|
|
/// <inheritdoc />
|
|
public Guid UserId { get; set; }
|
|
}
|