migrating session/map it to guid.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
155cb4ea9a
commit
195533bce0
17 changed files with 672 additions and 82 deletions
|
@ -7,7 +7,7 @@ namespace Sledgemapper.Api.Commands
|
|||
{
|
||||
public double Timestamp { get; private set; }
|
||||
public string SessionName { get; private set; }
|
||||
public string Campaign { get; private set; }
|
||||
public Guid Campaign { get; private set; }
|
||||
public string UserId { get; private set; }
|
||||
|
||||
public BaseCommand(string sessionName, string userId)
|
||||
|
@ -18,6 +18,14 @@ namespace Sledgemapper.Api.Commands
|
|||
}
|
||||
|
||||
public BaseCommand(string campaign, string sessionName, string userId)
|
||||
{
|
||||
Timestamp = DateTimeOffset.Now.ToUnixTimeMilliseconds();
|
||||
SessionName = sessionName;
|
||||
Campaign = new Guid(campaign);
|
||||
UserId = userId;
|
||||
}
|
||||
|
||||
public BaseCommand(Guid campaign, string sessionName, string userId)
|
||||
{
|
||||
Timestamp = DateTimeOffset.Now.ToUnixTimeMilliseconds();
|
||||
SessionName = sessionName;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue