Skip to content

Commit

Permalink
refactor: remove converter for ChannelType
Browse files Browse the repository at this point in the history
  • Loading branch information
Tr00d committed Jun 3, 2024
1 parent 5e01bf3 commit da4c568
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions Vonage/Conversations/Member.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,6 @@ public record MemberChannelFromV2(
public string Type => string.Join(",", this.Channels.Select(channel => channel.AsString(EnumFormat.Description)));
};

public class TestConverter : EnumDescriptionJsonConverter<ChannelType>
{
}

/// <summary>
/// Represents the destination channel.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion Vonage/Serialization/JsonSerializerBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ private static JsonSerializer BuildSerializer(JsonNamingPolicy policy) => new Js
.WithConverter(new PhoneNumberJsonConverter())
.WithConverter(new EmailJsonConverter())
.WithConverter(new LocaleJsonConverter())
.WithConverter(new TestConverter());
.WithConverter(new EnumDescriptionJsonConverter<ChannelType>());
}

0 comments on commit da4c568

Please sign in to comment.