diff --git a/GreenArrow.Engine/Model/Events/BounceType.cs b/GreenArrow.Engine/Model/Events/BounceType.cs index 680f630..71ea78e 100755 --- a/GreenArrow.Engine/Model/Events/BounceType.cs +++ b/GreenArrow.Engine/Model/Events/BounceType.cs @@ -1,21 +1,31 @@ -namespace GreenArrow.Engine.Model.Events +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.Runtime.Serialization; + +namespace GreenArrow.Engine.Model.Events { /// /// The type of bounce. h for hard, s for soft, and o for other. /// + [JsonConverter(typeof(StringEnumConverter))] public enum BounceType { /// /// Bounce for message that not be retried /// + [EnumMember(Value = "h")] Hard = 'h', + /// /// Bounce for message that can be retried /// + [EnumMember(Value = "s")] Soft = 's', + /// /// Other type of bounce /// + [EnumMember(Value = "o")] Other = 'o', } }