astral-api/Astral.ApiServer/Models/HeartbeatModel.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

61 lines
1.4 KiB
C#

// <copyright file="HeartbeatModel.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;
/// <summary>
/// Heartbeat contents.
/// </summary>
public class HeartbeatModel
{
/// <summary>
/// True if connected.
/// </summary>
[JsonPropertyName("connected")]
public bool Connected { get; set; }
/// <summary>
/// Path.
/// </summary>
[JsonPropertyName("path")]
public string Path { get; set; }
/// <summary>
/// Domain id.
/// </summary>
[JsonPropertyName("domain_id")]
public Guid DomainId { get; set; }
/// <summary>
/// Place id.
/// </summary>
[JsonPropertyName("place_id")]
public Guid PlaceId { get; set; }
/// <summary>
/// Network address.
/// </summary>
[JsonPropertyName("network_address")]
public string NetworkAddress { get; set; }
/// <summary>
/// Network port.
/// </summary>
[JsonPropertyName("network_port")]
public int NetworkPort { get; set; }
/// <summary>
/// Node id.
/// </summary>
[JsonPropertyName("node_id")]
public Guid NodeId { get; set; }
/// <summary>
/// Availability.
/// </summary>
[JsonPropertyName("availability")]
public string Availability { get; set; }
}