sledgemapper/Sledgemapper.Api/Notifications/BaseNotification.cs
Michele Scandura 79edfcc4d3
All checks were successful
continuous-integration/drone/push Build is passing
error message, broken build
2021-09-21 16:53:04 +01:00

21 lines
591 B
C#

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