Class NotificationType
The NotificationType class describes a single notification type that can be associated to a message. This message could be a notification or a standard message sent between users.
Implements
Inherited Members
Namespace: DotNetNuke.Services.Social.Notifications
Assembly: DotNetNuke.dll
Syntax
public class NotificationType : BaseEntityInfo, IHydratable
Properties
| Improve this Doc View SourceDescription
Gets or sets the notification type description.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DesktopModuleId
Gets or sets if the message type is related to a specific module, this field is used to localize actions by getting the resource file from the module folder.
Declaration
public int DesktopModuleId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
The resource file used will be SharedResources by convention.
IsTask
Gets or sets a value indicating whether is this of a Task type. Default is false.
Declaration
public bool IsTask { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
Tasks are primarily notifications where an action must be taken. Dismiss is usually not enough.
KeyID
Gets or sets iHydratable.KeyID.
Declaration
public int KeyID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Name
Gets or sets the notification type name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
NotificationTypeId
Gets or sets the notification type identifier.
Declaration
public int NotificationTypeId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
TimeToLive
Gets or sets the amount of time to add to the creation date of the message to calculate the expiration date.
Declaration
public TimeSpan TimeToLive { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
Remarks
Minutes precision. Seconds won't be considered.
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. |