2023-01-01 22:50:39 -05:00
|
|
|
|
using Luski.net.JsonTypes.BaseTypes;
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
2023-07-08 09:06:13 -04:00
|
|
|
|
namespace Luski.net.Structures.Main;
|
2023-01-01 22:50:39 -05:00
|
|
|
|
|
|
|
|
|
internal class SocketBulkMessage : IncomingHTTP
|
|
|
|
|
{
|
|
|
|
|
[JsonPropertyName("messages")]
|
|
|
|
|
[JsonInclude]
|
2023-07-08 09:06:13 -04:00
|
|
|
|
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
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|