Class Notification
The Notification class describes the a notification received by a user as a consecuence of an action.
Implements
Inherited Members
Namespace: DotNetNuke.Services.Social.Notifications
Assembly: DotNetNuke.dll
Syntax
public class Notification : BaseEntityInfo, IHydratable
Constructors
| Improve this Doc View SourceNotification()
Initializes a new instance of the Notification class. Default constructor.
Declaration
public Notification()
Properties
| Improve this Doc View SourceBody
Gets or sets message body.
Declaration
public string Body { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Context
Gets or sets context set by creator of the notification.
Declaration
public string Context { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DisplayDate
Gets a pretty printed string with the time since the message was created.
Declaration
public string DisplayDate { get; }
Property Value
Type | Description |
---|---|
System.String |
ExpirationDate
Gets or sets for notifications, this field indicates when it has to be removed (or not displayed).
Declaration
public DateTime ExpirationDate { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
From
Gets or sets message From.
Declaration
public string From { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IncludeDismissAction
Gets or sets a value indicating whether should this notification support a dismiss action.
Declaration
public bool IncludeDismissAction { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
KeyID
Gets or sets iHydratable.KeyID.
Declaration
public int KeyID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
NotificationID
Gets or sets notificationID - The primary key.
Declaration
public int NotificationID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
NotificationTypeID
Gets or sets the message type identifier.
Declaration
public int NotificationTypeID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SenderUserID
Gets or sets the UserID of the sender of the message.
Declaration
public int SenderUserID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SendToast
Gets or sets a value indicating whether the notification is displayed on the UI as a toast notification.
Declaration
public bool SendToast { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Subject
Gets or sets message Subject.
Declaration
public string Subject { get; set; }
Property Value
Type | Description |
---|---|
System.String |
To
Gets or sets to list for the message. This information is saved for faster display of To list in the message.
Declaration
public string To { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceFill(IDataReader)
Fill the object with data from database.
Declaration
public void Fill(IDataReader dr)
Parameters
Type | Name | Description |
---|---|---|
IDataReader | dr | the data reader. |