astral-api/Astral.ApiServer/Models/Common/ResponseModel.cs
Mike 81aa0ec1c0
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
WIP heartbeat and user presence
2024-12-15 16:06:14 +00:00

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; }
}