JacobTech
d8fbf281d0
I moved the two server types to their own classes to prevent API calls to a server, not of that type.
23 lines
642 B
C#
Executable File
23 lines
642 B
C#
Executable File
using Luski.net.JsonTypes.BaseTypes;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Luski.net.Structures.Main;
|
|
|
|
internal class SocketBulkMessage : IncomingHTTP
|
|
{
|
|
[JsonPropertyName("messages")]
|
|
[JsonInclude]
|
|
public MainSocketMessage[]? Messages { get; set; } = default!;
|
|
}
|
|
|
|
[JsonSerializable(typeof(SocketBulkMessage))]
|
|
[JsonSourceGenerationOptions(
|
|
GenerationMode = JsonSourceGenerationMode.Default,
|
|
PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase,
|
|
WriteIndented = false,
|
|
DefaultIgnoreCondition = JsonIgnoreCondition.Never)]
|
|
internal partial class SocketBulkMessageContext : JsonSerializerContext
|
|
{
|
|
|
|
}
|