migrating session/map it to guid.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michele Scandura 2021-09-16 16:51:07 +01:00
parent 155cb4ea9a
commit 195533bce0
17 changed files with 672 additions and 82 deletions

View file

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