• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

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.

Inheritance
System.Object
BaseEntityInfo
NotificationType
Implements
IHydratable
Inherited Members
BaseEntityInfo.CreatedByUserID
BaseEntityInfo.CreatedOnDate
BaseEntityInfo.LastModifiedByUserID
BaseEntityInfo.LastModifiedOnDate
BaseEntityInfo.CreatedByUser(Int32)
BaseEntityInfo.LastModifiedByUser(Int32)
BaseEntityInfo.FillInternal(IDataReader)
BaseEntityInfo.CloneBaseProperties(BaseEntityInfo, BaseEntityInfo)
Namespace: DotNetNuke.Services.Social.Notifications
Assembly: DotNetNuke.dll
Syntax
public class NotificationType : BaseEntityInfo, IHydratable

Properties

| Improve this Doc View Source

Description

Gets or sets the notification type description.

Declaration
public string Description { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

KeyID

Gets or sets iHydratable.KeyID.

Declaration
public int KeyID { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Name

Gets or sets the notification type name.

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

NotificationTypeId

Gets or sets the notification type identifier.

Declaration
public int NotificationTypeId { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

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 Source

Fill(IDataReader)

Fill the object with data from database.

Declaration
public void Fill(IDataReader dr)
Parameters
Type Name Description
IDataReader dr

the data reader.

Implements

IHydratable

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS