From da4c568e4a6bf66cc9bcf314ccfd8f7980df3c5c Mon Sep 17 00:00:00 2001 From: tr00d Date: Mon, 3 Jun 2024 07:52:45 +0200 Subject: [PATCH] refactor: remove converter for ChannelType --- Vonage/Conversations/Member.cs | 4 ---- Vonage/Serialization/JsonSerializerBuilder.cs | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Vonage/Conversations/Member.cs b/Vonage/Conversations/Member.cs index 47e8e4d9..78456018 100644 --- a/Vonage/Conversations/Member.cs +++ b/Vonage/Conversations/Member.cs @@ -115,10 +115,6 @@ public record MemberChannelFromV2( public string Type => string.Join(",", this.Channels.Select(channel => channel.AsString(EnumFormat.Description))); }; -public class TestConverter : EnumDescriptionJsonConverter -{ -} - /// /// Represents the destination channel. /// diff --git a/Vonage/Serialization/JsonSerializerBuilder.cs b/Vonage/Serialization/JsonSerializerBuilder.cs index dbf97d0b..a46fd7ce 100644 --- a/Vonage/Serialization/JsonSerializerBuilder.cs +++ b/Vonage/Serialization/JsonSerializerBuilder.cs @@ -42,5 +42,5 @@ public static class JsonSerializerBuilder .WithConverter(new PhoneNumberJsonConverter()) .WithConverter(new EmailJsonConverter()) .WithConverter(new LocaleJsonConverter()) - .WithConverter(new TestConverter()); + .WithConverter(new EnumDescriptionJsonConverter()); } \ No newline at end of file