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;
        }
    }
}
