using System; using System.Collections.Generic; using MediatR; namespace Sledgemapper.Api.Commands { public class NewSessionCommand : BaseCommand { public NewSessionCommand(string sessionName, int userId) : base(sessionName, userId) { } } public class NewCampaignCommand : IRequest { 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; } } public class GetCampaignsCommand : IRequest> { public string UserId { get; private set; } public GetCampaignsCommand(string userId) { UserId = userId; } } }