2024-12-15 17:06:14 +01:00
|
|
|
// <copyright file="ResponseModel.cs" company="alveus.dev">
|
2024-12-11 21:36:30 +01:00
|
|
|
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
|
|
|
|
// </copyright>
|
|
|
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
namespace Astral.ApiServer.Models.Common;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Generic result model.
|
|
|
|
/// </summary>
|
2024-12-15 17:06:14 +01:00
|
|
|
public class ResponseModel
|
2024-12-11 21:36:30 +01:00
|
|
|
{
|
2024-12-15 17:06:14 +01:00
|
|
|
/// <summary>
|
|
|
|
/// Interface requires a string to represent success or failure rather than a boolean.
|
|
|
|
/// </summary>
|
|
|
|
[JsonPropertyName("status")]
|
|
|
|
public string Status { get; set; }
|
|
|
|
|
2024-12-11 21:36:30 +01:00
|
|
|
/// <summary>
|
2024-12-14 17:31:17 +01:00
|
|
|
/// Indicate success.
|
2024-12-11 21:36:30 +01:00
|
|
|
/// </summary>
|
2024-12-14 17:31:17 +01:00
|
|
|
[JsonPropertyName("success")]
|
|
|
|
public bool Success { get; set; }
|
2024-12-11 21:36:30 +01:00
|
|
|
}
|