-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into vbardin/add-analytics-events
- Loading branch information
Showing
6 changed files
with
25 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
.idea | ||
.idea | ||
[bB]in | ||
[oO]bj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
namespace Trumpee.MassTransit.Messages.Notifications; | ||
|
||
public class Content | ||
public record Content | ||
{ | ||
public required string Subject { get; init; } | ||
public required string Body { get; init; } | ||
|
||
public Dictionary<string, Variable>? Variables { get; set; } | ||
public Dictionary<string, Variable>? Variables { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
namespace Trumpee.MassTransit.Messages.Notifications; | ||
|
||
public class Notification | ||
public record Notification | ||
{ | ||
public Content? Content { get; set; } | ||
public Priority? Priority { get; set; } | ||
public string? Status { get; set; } | ||
public DateTimeOffset? Timestamp { get; set; } | ||
|
||
public string? UserId { get; set; } | ||
public string? Channel { get; set; } | ||
public Content? Content { get; init; } | ||
public Priority? Priority { get; init; } | ||
public string? Status { get; init; } | ||
public DateTimeOffset? Timestamp { get; init; } | ||
public Recipient Recipient { get; init; } = null!; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Trumpee.MassTransit.Messages.Notifications; | ||
|
||
public record Recipient | ||
{ | ||
public required string UserId { get; init; } | ||
public required string Channel { get; init; } | ||
public object? DeliveryInfo { get; init; } | ||
public Dictionary<string, object>? Metadata { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters