namespace adas_core.Domain.Models.Responses;
///
/// Represents a generic response wrapper that encapsulates a payload of type along with associated response metadata.
///
/// The type of the payload contained within the response.
public class Response
{
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(long Changes, T? Data);