test small fixes
This commit is contained in:
parent
5551918d54
commit
3d45bc532c
12 changed files with 175 additions and 163 deletions
|
@ -6,28 +6,15 @@ namespace Sledgemapper.Api.Notifications
|
|||
public abstract class BaseNotification : INotification
|
||||
{
|
||||
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)
|
||||
public BaseNotification(Models.Session session, int userId)
|
||||
{
|
||||
Timestamp = DateTimeOffset.Now.ToUnixTimeMilliseconds();
|
||||
SessionName = sessionName;
|
||||
Session = session; ;
|
||||
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