Class NotificationDto
- Namespace
- Builvero.Application.DTOs
- Assembly
- Builvero.Application.dll
Data transfer object representing a user notification with type-specific payload data.
public class NotificationDto
- Inheritance
-
NotificationDto
- Inherited Members
Remarks
Notifications inform users about important events such as project invitations, join requests, and their outcomes. The payload structure depends on the notification type and contains type-specific data (e.g., project details, sender information).
Properties
CreatedAtUtc
Gets or sets the UTC timestamp when this notification was created.
public DateTime CreatedAtUtc { get; set; }
Property Value
- DateTime
- Data transfer object representing a user notification with type-specific payload data.
Id
Gets or sets the unique identifier of the notification.
public Guid Id { get; set; }
Property Value
- Guid
- Data transfer object representing a user notification with type-specific payload data.
IsRead
Gets or sets a value indicating whether this notification has been read by the user.
public bool IsRead { get; set; }
Property Value
- bool
- Data transfer object representing a user notification with type-specific payload data.
PayloadJson
Gets or sets the JSON payload containing type-specific notification data.
public string PayloadJson { get; set; }
Property Value
- string
- Data transfer object representing a user notification with type-specific payload data.
Remarks
The structure of this JSON depends on the Type. For example:
- ProjectInvitationReceived: Contains project details, sender information, invitation metadata
- ProjectJoinRequestResult: Contains project details, requester information, request outcome
Type
Gets or sets the type of notification as a string (e.g., "ProjectInvitationReceived", "ProjectJoinRequestResult").
public string Type { get; set; }
Property Value
- string
- Data transfer object representing a user notification with type-specific payload data.
Remarks
This is the string representation of the NotificationType enum. The type determines the structure of the PayloadJson.