Class Message
The Message class describes the content of messages sent via the system As messaging is system wide process and there may be no portalID context (e.g. a host messaging "all users") the object does not tie to portalID.
Implements
Inherited Members
Namespace: DotNetNuke.Services.Social.Messaging
Assembly: DotNetNuke.dll
Syntax
public class Message : BaseEntityInfo, IHydratable
Properties
| Improve this Doc View SourceBody
Gets or sets message body.
Declaration
public string Body { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ConversationId
Gets or sets conversation ID of the Message. Each message has at least one ConversationId. Subsequent Replies to a Message get same ConversationId.
Declaration
public int ConversationId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
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 |
From
Gets or sets message From.
Declaration
public string From { get; set; }
Property Value
Type | Description |
---|---|
System.String |
KeyID
Gets or sets iHydratable.KeyID.
Declaration
public int KeyID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MessageID
Gets or sets messageID - The primary key.
Declaration
public int MessageID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
NotificationTypeID
Gets or sets notificationType ID of the Message. Each message is associated with a notification type.
Declaration
public int NotificationTypeID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
PortalID
Gets or sets portalID for the message.
Declaration
public int PortalID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ReplyAllAllowed
Gets or sets a value indicating whether replyAllAllowed is a bit value to indicate if the reply to the message can be sent to all the recipients or just the sender.
Declaration
public bool ReplyAllAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
SenderUserID
Gets or sets the UserID of the sender of the message.
Declaration
public int SenderUserID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
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. |