25 lines
663 B
C#
25 lines
663 B
C#
// <copyright file="ResponseModel.cs" company="alveus.dev">
|
|
// 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>
|
|
public class ResponseModel
|
|
{
|
|
/// <summary>
|
|
/// Interface requires a string to represent success or failure rather than a boolean.
|
|
/// </summary>
|
|
[JsonPropertyName("status")]
|
|
public string Status { get; set; }
|
|
|
|
/// <summary>
|
|
/// Indicate success.
|
|
/// </summary>
|
|
[JsonPropertyName("success")]
|
|
public bool Success { get; set; }
|
|
}
|