Files
DigitalData.TaskFlow/src/core/DigitalData.TaskFlow.Domain/Common/ApiEnvelope.cs

19 lines
583 B
C#

namespace DigitalData.TaskFlow.Domain.Common;
/// <summary>
/// Represents the standard API envelope that contains meta information and payload data.
/// </summary>
/// <typeparam name="T">Type of the payload in the response.</typeparam>
public sealed record ApiEnvelope<T>
{
/// <summary>
/// Gets the list of metadata entries describing the business result.
/// </summary>
public required IReadOnlyList<MetaEntry> Meta { get; init; }
/// <summary>
/// Gets the payload data returned by the endpoint.
/// </summary>
public T? Data { get; init; }
}