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

Class Notification

The Notification class describes the a notification received by a user as a consecuence of an action.

Inheritance
System.Object
BaseEntityInfo
Notification
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 Notification : BaseEntityInfo, IHydratable

Constructors

| Improve this Doc View Source

Notification()

Initializes a new instance of the Notification class. Default constructor.

Declaration
public Notification()

Properties

| Improve this Doc View Source

Body

Gets or sets message body.

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

Context

Gets or sets context set by creator of the notification.

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

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
| Improve this Doc View Source

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
| Improve this Doc View Source

From

Gets or sets message From.

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

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
| 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

NotificationID

Gets or sets notificationID - The primary key.

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

NotificationTypeID

Gets or sets the message type identifier.

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

SenderUserID

Gets or sets the UserID of the sender of the message.

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

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
| Improve this Doc View Source

Subject

Gets or sets message Subject.

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

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 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