14 lines
No EOL
365 B
C#
14 lines
No EOL
365 B
C#
using System.Text.Json;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace blazingconsole.Types
|
|
{
|
|
[JsonConverter(typeof(ComputerTypeConverter))]
|
|
public enum ComputerType {
|
|
CONSOLE
|
|
}
|
|
|
|
public class ComputerTypeConverter : JsonStringEnumConverter {
|
|
public ComputerTypeConverter() : base(JsonNamingPolicy.SnakeCaseUpper, false) { }
|
|
}
|
|
} |