mirror of
https://github.com/alex289/CleanArchitecture.git
synced 2025-07-01 11:02:57 +00:00
20 lines
549 B
C#
20 lines
549 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace CleanArchitecture.Api.Models;
|
|
|
|
public sealed class ResponseMessage<T>
|
|
{
|
|
[JsonPropertyName("success")]
|
|
public bool Success { get; init; }
|
|
|
|
[JsonPropertyName("errors")]
|
|
public IEnumerable<string>? Errors { get; init; }
|
|
|
|
[JsonPropertyName("detailedErrors")]
|
|
public IEnumerable<DetailedError> DetailedErrors { get; init; } = Enumerable.Empty<DetailedError>();
|
|
|
|
[JsonPropertyName("data")]
|
|
public T? Data { get; init; }
|
|
} |