Luski.Net/Luski.net/Structures/Main/SocketBulkMessage.cs

24 lines
654 B
C#
Raw Permalink Normal View History

2024-03-20 23:18:34 -04:00
using System.Text.Json.Serialization;
using Luski.Shared.PublicServers.V1.ServerToClient.HTTP;
2023-01-01 22:50:39 -05:00
namespace Luski.net.Structures.Main;
2023-01-01 22:50:39 -05:00
2024-03-20 23:18:34 -04:00
internal class SocketBulkMessage : STC
2023-01-01 22:50:39 -05:00
{
[JsonPropertyName("messages")]
[JsonInclude]
public MainSocketMessage[]? Messages { get; set; } = default!;
2023-01-01 22:50:39 -05:00
}
[JsonSerializable(typeof(SocketBulkMessage))]
[JsonSourceGenerationOptions(
GenerationMode = JsonSourceGenerationMode.Default,
PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase,
WriteIndented = false,
DefaultIgnoreCondition = JsonIgnoreCondition.Never)]
internal partial class SocketBulkMessageContext : JsonSerializerContext
{
}