progress
This commit is contained in:
parent
9ef43bb9f6
commit
0a4b8ebeb2
14 changed files with 157 additions and 28 deletions
|
@ -1,4 +1,5 @@
|
|||
using MediatR;
|
||||
using Sledgemapper.Shared.Entities;
|
||||
using System;
|
||||
|
||||
namespace Sledgemapper.Api.Handlers
|
||||
|
@ -8,6 +9,8 @@ namespace Sledgemapper.Api.Handlers
|
|||
public double Timestamp { get; private set; }
|
||||
public string SessionName { get; private set; }
|
||||
public int UserId { get; private set; }
|
||||
public int SessionId { get; set; }
|
||||
public Models.Session Session { get; set; }
|
||||
|
||||
public BaseNotification(string sessionName, int userId)
|
||||
{
|
||||
|
@ -15,5 +18,17 @@ namespace Sledgemapper.Api.Handlers
|
|||
SessionName = sessionName;
|
||||
UserId = userId;
|
||||
}
|
||||
|
||||
public BaseNotification(Models.Session session, int userId)
|
||||
{
|
||||
Timestamp = DateTimeOffset.Now.ToUnixTimeMilliseconds();
|
||||
Session = session;;
|
||||
UserId = userId;
|
||||
}
|
||||
|
||||
public BaseNotification(int sessionId, string sessionName, int userId) : this(sessionName, userId)
|
||||
{
|
||||
SessionId = sessionId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue