almost done
This commit is contained in:
@@ -8,6 +8,7 @@ namespace TorchRemote.Models.Shared.Settings;
|
||||
[JsonDerivedType(typeof(BooleanProperty), "boolean")]
|
||||
[JsonDerivedType(typeof(NumberProperty), "number")]
|
||||
[JsonDerivedType(typeof(ObjectProperty), "object")]
|
||||
[JsonDerivedType(typeof(ArrayProperty), "array")]
|
||||
[JsonDerivedType(typeof(EnumProperty), "enum")]
|
||||
[JsonDerivedType(typeof(DateTimeProperty), "date-time")]
|
||||
[JsonDerivedType(typeof(DurationProperty), "duration")]
|
||||
@@ -21,6 +22,7 @@ public record StringProperty(string Name, string? Value) : PropertyBase(Name);
|
||||
public record EnumProperty(string Name, string Value) : PropertyBase(Name);
|
||||
public record BooleanProperty(string Name, bool? Value) : PropertyBase(Name);
|
||||
public record ObjectProperty(string Name, JsonElement Value) : PropertyBase(Name);
|
||||
public record ArrayProperty(string Name, JsonElement Value) : PropertyBase(Name);
|
||||
public record DateTimeProperty(string Name, DateTime? Value) : PropertyBase(Name);
|
||||
public record DurationProperty(string Name, TimeSpan? Value) : PropertyBase(Name);
|
||||
public record UriProperty(string Name, Uri? Value) : PropertyBase(Name);
|
||||
|
Reference in New Issue
Block a user