sledgemapper/Sledgemapper.Api/Notifications/BaseNotification.cs
2020-11-20 23:43:33 +00:00

20 lines
563 B
C#

using MediatR;
using System;
namespace Sledgemapper.Api.Notifications
{
public abstract class BaseNotification : INotification
{
public double Timestamp { get; private set; }
public int UserId { get; private set; }
public int SessionId { get; set; }
public Models.Session Session { get; set; }
public BaseNotification(Models.Session session, int userId)
{
Timestamp = DateTimeOffset.Now.ToUnixTimeMilliseconds();
Session = session; ;
UserId = userId;
}
}
}