Skip to content

Commit

Permalink
Merge branch 'main' into vbardin/add-analytics-events
Browse files Browse the repository at this point in the history
  • Loading branch information
Bardin08 authored May 20, 2024
2 parents 714d2a1 + 4a1d6e4 commit 63773c4
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 16 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.idea
.idea
[bB]in
[oO]bj
4 changes: 2 additions & 2 deletions Trumpee.MassTransit.Messages/Notifications/Content.cs
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; }
}
14 changes: 6 additions & 8 deletions Trumpee.MassTransit.Messages/Notifications/Notification.cs
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!;
}
9 changes: 9 additions & 0 deletions Trumpee.MassTransit.Messages/Notifications/Recipient.cs
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; }
}
2 changes: 1 addition & 1 deletion Trumpee.MassTransit.Messages/Notifications/Variable.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Trumpee.MassTransit.Messages.Notifications;

public class Variable
public record Variable
{
public required string Name { get; init; }
public string? Description { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>1.0.0.9</Version>
<AssemblyVersion>1.0.0.9</AssemblyVersion>
<FileVersion>1.0.0.9</FileVersion>
<Version>1.0.0.11</Version>
<AssemblyVersion>1.0.0.11</AssemblyVersion>
<FileVersion>1.0.0.11</FileVersion>
</PropertyGroup>

</Project>
</Project>

0 comments on commit 63773c4

Please sign in to comment.