Skip to content

Commit

Permalink
Merge pull request #36 from FromDoppler/DD-1248-fix-types
Browse files Browse the repository at this point in the history
[DD-1248] fix types
  • Loading branch information
RodrigoPereyraDiaz authored Sep 21, 2023
2 parents e362c55 + 0a12a42 commit 341115d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions GreenArrow.Engine/Model/Events/DeliveryAttempt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public enum StatusEnum
/// <summary>
/// Primary key of the VirtualMTA that the message is assigned to.
/// </summary>
public int Mtaid { get; init; }
public string Mtaid { get; init; }

/// <summary>
/// The time that the message was injected into GreenArrow’s queue, in seconds past the Unix epoch.
Expand Down Expand Up @@ -150,7 +150,7 @@ public enum StatusEnum
/// Folded headers will simply contain the folding newlines/whitespace.
/// As a header may be included in an email multiple times, the value of the JSON object is an array of strings.
/// </summary>
public ICollection<string> Headers { get; init; }
public object Headers { get; init; }

/// <summary>
/// The size of the message (in bytes), if loaded from storage.
Expand Down
7 changes: 6 additions & 1 deletion GreenArrow.Engine/Model/Events/EventType.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
namespace GreenArrow.Engine.Model.Events
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;

namespace GreenArrow.Engine.Model.Events
{
/// <summary>
/// Types of event generate by Green Arrow event processor
/// </summary>
[JsonConverter(typeof(StringEnumConverter), typeof(SnakeCaseNamingStrategy))]
public enum EventType
{
/// <summary>
Expand Down

0 comments on commit 341115d

Please sign in to comment.