mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-22 01:55:47 +00:00
24 lines
583 B
C#
24 lines
583 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Spacebar.Models.Gateway;
|
|
|
|
public class HeartbeatRequest {
|
|
[JsonPropertyName("seq")]
|
|
public required int? Sequence { get; set; }
|
|
}
|
|
|
|
public class QoSHeartbeatRequest : HeartbeatRequest {
|
|
[JsonPropertyName("qos")]
|
|
public required QoSPayload QoSPayload { get; set; }
|
|
}
|
|
|
|
public class QoSPayload {
|
|
[JsonPropertyName("ver")]
|
|
public int Version { get; set; }
|
|
|
|
[JsonPropertyName("active")]
|
|
public bool Active { get; set; }
|
|
|
|
[JsonPropertyName("reasons")]
|
|
public List<string> Reasons { get; set; } = [];
|
|
} |