namespace adas_core.Domain.Models.Responses;

public class Response<T>
{
    public Response()
    {
    }

    public Response(T data)
    {
        Succeeded = true;
        Message = string.Empty;
        Errors = null;
        Data = data;
    }

    public T? Data { get; set; }
    public bool? Succeeded { get; set; }

    public string[]? Errors { get; set; }
    public string? Message { get; set; }
}

public record UpdateResponse<T>(long Changes, T? Data);