JacobTech
106d0d6078
• A lot of work needs to be done to make sure this works. • I already know this push won't work, but it will build. • I need to come up with a new way of storing local info. This will also bee needed to fix the very broken key system in this rushed commit.
21 lines
546 B
C#
21 lines
546 B
C#
using System.Text.Json.Serialization;
|
|
using Luski.net.JsonTypes.BaseTypes;
|
|
|
|
namespace Luski.net.JsonTypes;
|
|
|
|
public class OfflineData : IncomingHTTP
|
|
{
|
|
[JsonPropertyName("data")]
|
|
[JsonInclude]
|
|
public string[]? Data { get; internal set; } = default!;
|
|
}
|
|
|
|
[JsonSerializable(typeof(OfflineData))]
|
|
[JsonSourceGenerationOptions(
|
|
GenerationMode = JsonSourceGenerationMode.Default,
|
|
PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase,
|
|
WriteIndented = false)]
|
|
internal partial class OfflineDataContext : JsonSerializerContext
|
|
{
|
|
|
|
} |