Class NotificationRequest
Represents a notification request.
Implements
Inherited Members
Namespace: Innovt.Notification.Core.Domain
Assembly: Innovt.Notification.Core.dll
Syntax
public class NotificationRequest : IValidatableObject
Constructors
| Edit this page View SourceNotificationRequest()
Initializes a new instance of the NotificationRequest class.
Declaration
public NotificationRequest()
Properties
| Edit this page View SourcePayLoad
Gets or sets the payload associated with the notification request.
Declaration
public object PayLoad { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
TemplateId
Gets or sets the template ID.
Declaration
public string TemplateId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
To
Gets or sets the list of "To" contacts for the notification request.
Declaration
public List<NotificationMessageContact> To { get; set; }
Property Value
| Type | Description |
|---|---|
| List<NotificationMessageContact> |
Methods
| Edit this page View SourceValidate(ValidationContext)
Determines whether the specified object is valid.
Declaration
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
Parameters
| Type | Name | Description |
|---|---|---|
| ValidationContext | validationContext | The validation context. |
Returns
| Type | Description |
|---|---|
| IEnumerable<ValidationResult> | A collection that holds failed-validation information. |