sledgemapper/Sledgemapper.Api/Commands/NewCampaignCommand.cs
Michele Scandura 195533bce0
All checks were successful
continuous-integration/drone/push Build is passing
migrating session/map it to guid.
2021-09-16 16:51:07 +01:00

19 lines
No EOL
529 B
C#

using System;
using MediatR;
namespace Sledgemapper.Api.Commands
{
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;
}
}
}