Skip to content

Commit 84dbc98

Browse files
committed
add enum converter
1 parent 4ff0e71 commit 84dbc98

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/SocketLabs.EventWebhooks.Extensions/Models/EngagementEvent.cs

+2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4+
using System.Text.Json.Serialization;
45
using System.Threading.Tasks;
56

67
namespace SocketLabs.EventWebhooks.Extensions.Models
78
{
89
public class EngagementEvent : WebhookEventBase
910
{
11+
[JsonConverter(typeof(JsonStringEnumConverter))]
1012
public TrackingType TrackingType { get; set; }
1113
public string? ClientIp { get; set; }
1214
public string? Url { get; set; }

src/SocketLabs.EventWebhooks.Extensions/SocketLabs.EventWebhooks.Extensions.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<PackageReference Include="Microsoft.Extensions.Configuration" Version="7.0.0" />
1313
<PackageReference Include="Microsoft.Extensions.Options" Version="7.0.1" />
1414
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="7.0.0" />
15+
<PackageReference Include="System.Text.Json" Version="7.0.3" />
1516
</ItemGroup>
1617

1718
</Project>

0 commit comments

Comments
 (0)