26 lines
No EOL
707 B
C#
26 lines
No EOL
707 B
C#
using System;
|
|
using MediatR;
|
|
|
|
namespace Sledgemapper.Api.Commands
|
|
{
|
|
public class NewSessionCommand : BaseCommand<bool>
|
|
{
|
|
public NewSessionCommand(string sessionName, int userId) : base(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;
|
|
}
|
|
}
|
|
|
|
} |