Skip to content

Commit

Permalink
Use records instead classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bardin08 committed Dec 3, 2023
1 parent a06e6e0 commit e6a7f74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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; }
}
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

0 comments on commit e6a7f74

Please sign in to comment.