cleanup
This commit is contained in:
parent
1b910adf55
commit
af441e772b
34 changed files with 279 additions and 292 deletions
|
@ -3,26 +3,17 @@ using System;
|
|||
|
||||
namespace Sledgemapper.Api.Commands
|
||||
{
|
||||
public abstract class BaseCommand<T> : IRequest<T>
|
||||
public abstract class BaseCommand<T> : IRequest<T>
|
||||
{
|
||||
public double Timestamp { get; private set; }
|
||||
public string SessionName { get; private set; }
|
||||
public int UserId { get; set; }
|
||||
public int SessionId {get;set;}
|
||||
|
||||
public int UserId { get; private set; }
|
||||
|
||||
public BaseCommand(string sessionName, int userId)
|
||||
{
|
||||
Timestamp = DateTimeOffset.Now.ToUnixTimeMilliseconds();
|
||||
SessionName = sessionName;
|
||||
UserId=userId;
|
||||
}
|
||||
|
||||
public BaseCommand(int sessionId, int userId)
|
||||
{
|
||||
Timestamp = DateTimeOffset.Now.ToUnixTimeMilliseconds();
|
||||
SessionId = sessionId;
|
||||
UserId=userId;
|
||||
UserId = userId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue