Skip to content

ComandoComIntervaloDeDatas

Classe base para comandos que recebem um intervalo de datas como argumento.

csharp
// Commands/ArgumentosIntervalo.cs
public class ArgumentosIntervalo
{
    [JsonPropertyName("de")]
    public DateTime De { get; set; }

    [JsonPropertyName("ate")]
    public DateTime Ate { get; set; }
}

// Commands/ComandoComIntervaloDeDatas.cs
public abstract class ComandoComIntervaloDeDatas : Comando
{
    [JsonPropertyName("argumentos")]
    public ArgumentosIntervalo Argumentos { get; set; } = null!;
}

Comandos que herdam ComandoComIntervaloDeDatas: ENVIAR_VENDAS_INTERVALO, ENVIAR_PRODUTOS_INTERVALO, ENVIAR_DEVOLUCOES_INTERVALO, ENVIAR_COMPRAS_INTERVALO, ENVIAR_CONTRAPROVA_VENDAS_INTERVALO, ENVIAR_CONTRAPROVA_DEVOLUCOES_INTERVALO.