sledgemapper/Sledgemapper.Api/Notifications/BaseNotification.cs
2020-11-08 23:48:15 +00:00

17 lines
432 B
C#

using MediatR;
using System;
namespace Sledgemapper.Api.Handlers
{
public abstract class BaseNotification : INotification
{
public double Timestamp { get; private set; }
public string SessionName { get; private set; }
public BaseNotification(string sessionName)
{
Timestamp = DateTimeOffset.Now.ToUnixTimeMilliseconds();
SessionName = sessionName;
}
}
}