sledgemapper/Sledgemapper.Api/Commands/NewSessionCommand.cs
Michele 4c345bd044
All checks were successful
continuous-integration/drone/push Build is passing
tentative campaign map management
2021-08-30 23:30:04 +01:00

26 lines
No EOL
737 B
C#

using System;
using MediatR;
namespace Sledgemapper.Api.Commands
{
public class NewSessionCommand : BaseCommand<bool>
{
public NewSessionCommand(string campaign, string sessionName, string userId) : base(campaign, sessionName, userId)
{
}
}
public class NewCampaignCommand : IRequest<bool>
{
public double Timestamp { get; private set; }
public string CampaignName { get; private set; }
public string UserId { get; private set; }
public NewCampaignCommand(string campaingName, string userId)
{
Timestamp = DateTimeOffset.Now.ToUnixTimeMilliseconds();
CampaignName = campaingName;
UserId = userId;
}
}
}