From 913ea23732a25949a4ece0c1628e0471ea729409 Mon Sep 17 00:00:00 2001 From: Daan Boerlage Date: Sun, 31 Oct 2021 23:23:02 +0100 Subject: [PATCH] Remove OptionChoice type inheritors in favour of just supporting strings as values --- .../ApplicationCommand/OptionChoiceDouble.cs | 14 -------------- .../ApplicationCommand/OptionChoiceInteger.cs | 14 -------------- .../ApplicationCommand/OptionChoiceString.cs | 14 -------------- 3 files changed, 42 deletions(-) delete mode 100644 src/Core/Interactions/ApplicationCommand/OptionChoiceDouble.cs delete mode 100644 src/Core/Interactions/ApplicationCommand/OptionChoiceInteger.cs delete mode 100644 src/Core/Interactions/ApplicationCommand/OptionChoiceString.cs diff --git a/src/Core/Interactions/ApplicationCommand/OptionChoiceDouble.cs b/src/Core/Interactions/ApplicationCommand/OptionChoiceDouble.cs deleted file mode 100644 index b002f77..0000000 --- a/src/Core/Interactions/ApplicationCommand/OptionChoiceDouble.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System.Text.Json.Serialization; - -namespace Geekbot.Core.Interactions.ApplicationCommand -{ - /// - public record OptionChoiceDouble : OptionChoice - { - /// - /// value of the choice, up to 100 characters if string - /// - [JsonPropertyName("value")] - public double Value { get; set; } - } -} \ No newline at end of file diff --git a/src/Core/Interactions/ApplicationCommand/OptionChoiceInteger.cs b/src/Core/Interactions/ApplicationCommand/OptionChoiceInteger.cs deleted file mode 100644 index f9e885e..0000000 --- a/src/Core/Interactions/ApplicationCommand/OptionChoiceInteger.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System.Text.Json.Serialization; - -namespace Geekbot.Core.Interactions.ApplicationCommand -{ - /// - public record OptionChoiceInteger : OptionChoice - { - /// - /// value of the choice, up to 100 characters if string - /// - [JsonPropertyName("value")] - public int Value { get; set; } - } -} \ No newline at end of file diff --git a/src/Core/Interactions/ApplicationCommand/OptionChoiceString.cs b/src/Core/Interactions/ApplicationCommand/OptionChoiceString.cs deleted file mode 100644 index e585c16..0000000 --- a/src/Core/Interactions/ApplicationCommand/OptionChoiceString.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System.Text.Json.Serialization; - -namespace Geekbot.Core.Interactions.ApplicationCommand -{ - /// - public record OptionChoiceString : OptionChoice - { - /// - /// value of the choice, up to 100 characters if string - /// - [JsonPropertyName("value")] - public string Value { get; set; } - } -} \ No newline at end of file