mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 03:32:20 +08:00
16 lines
453 B
C#
16 lines
453 B
C#
using JsonSubTypes;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Serialization;
|
|
|
|
namespace BililiveRecorder.Core.Config
|
|
{
|
|
[JsonConverter(typeof(JsonSubtypes), nameof(Version))]
|
|
[JsonSubtypes.KnownSubType(typeof(V1.ConfigV1Wrapper), 1)]
|
|
[JsonSubtypes.KnownSubType(typeof(V2.ConfigV2), 2)]
|
|
public abstract class ConfigBase
|
|
{
|
|
[JsonProperty("version")]
|
|
public virtual int Version { get; internal protected set; }
|
|
}
|
|
}
|