Interface IDataService
Assembly: DotNetNuke.dll
Syntax
public interface IDataService
Methods
|
Improve this Doc
View Source
CheckReplyHasRecipients(Int32, Int32)
Declaration
int CheckReplyHasRecipients(int conversationId, int userId)
Parameters
Type |
Name |
Description |
System.Int32 |
conversationId |
|
System.Int32 |
userId |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
ConvertLegacyMessages(Int32, Int32)
Declaration
void ConvertLegacyMessages(int pageIndex, int pageSize)
Parameters
Type |
Name |
Description |
System.Int32 |
pageIndex |
|
System.Int32 |
pageSize |
|
|
Improve this Doc
View Source
CountArchivedConversations(Int32, Int32)
Declaration
int CountArchivedConversations(int userId, int portalId)
Parameters
Type |
Name |
Description |
System.Int32 |
userId |
|
System.Int32 |
portalId |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CountArchivedMessages(Int32, Int32)
Declaration
int CountArchivedMessages(int userId, int portalId)
Parameters
Type |
Name |
Description |
System.Int32 |
userId |
|
System.Int32 |
portalId |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CountArchivedMessagesByConversation(Int32)
Declaration
int CountArchivedMessagesByConversation(int conversationId)
Parameters
Type |
Name |
Description |
System.Int32 |
conversationId |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CountLegacyMessages()
Declaration
IDataReader CountLegacyMessages()
Returns
Type |
Description |
IDataReader |
|
|
Improve this Doc
View Source
CountMessagesByConversation(Int32)
Declaration
int CountMessagesByConversation(int conversationId)
Parameters
Type |
Name |
Description |
System.Int32 |
conversationId |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CountNewThreads(Int32, Int32)
Declaration
int CountNewThreads(int userId, int portalId)
Parameters
Type |
Name |
Description |
System.Int32 |
userId |
|
System.Int32 |
portalId |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CountSentConversations(Int32, Int32)
Declaration
int CountSentConversations(int userId, int portalId)
Parameters
Type |
Name |
Description |
System.Int32 |
userId |
|
System.Int32 |
portalId |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CountSentMessages(Int32, Int32)
Declaration
int CountSentMessages(int userId, int portalId)
Parameters
Type |
Name |
Description |
System.Int32 |
userId |
|
System.Int32 |
portalId |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CountTotalConversations(Int32, Int32)
Declaration
int CountTotalConversations(int userId, int portalId)
Parameters
Type |
Name |
Description |
System.Int32 |
userId |
|
System.Int32 |
portalId |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CreateMessageRecipientsForRole(Int32, String, Int32)
Declaration
void CreateMessageRecipientsForRole(int messageId, string roleIds, int createUpdateUserId)
Parameters
Type |
Name |
Description |
System.Int32 |
messageId |
|
System.String |
roleIds |
|
System.Int32 |
createUpdateUserId |
|
|
Improve this Doc
View Source
CreateMessageReply(Int32, Int32, String, Int32, String, Int32)
Declaration
int CreateMessageReply(int conversationId, int portalId, string body, int senderUserId, string from, int createUpdateUserId)
Parameters
Type |
Name |
Description |
System.Int32 |
conversationId |
|
System.Int32 |
portalId |
|
System.String |
body |
|
System.Int32 |
senderUserId |
|
System.String |
from |
|
System.Int32 |
createUpdateUserId |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
DeleteMessage(Int32)
Declaration
void DeleteMessage(int messageId)
Parameters
Type |
Name |
Description |
System.Int32 |
messageId |
|
|
Improve this Doc
View Source
DeleteMessageAttachment(Int32)
Declaration
void DeleteMessageAttachment(int messageAttachmentId)
Parameters
Type |
Name |
Description |
System.Int32 |
messageAttachmentId |
|
|
Improve this Doc
View Source
DeleteMessageRecipient(Int32)
Declaration
void DeleteMessageRecipient(int messageRecipientId)
Parameters
Type |
Name |
Description |
System.Int32 |
messageRecipientId |
|
|
Improve this Doc
View Source
DeleteMessageRecipientByMessageAndUser(Int32, Int32)
Declaration
void DeleteMessageRecipientByMessageAndUser(int messageId, int userId)
Parameters
Type |
Name |
Description |
System.Int32 |
messageId |
|
System.Int32 |
userId |
|
|
Improve this Doc
View Source
DeleteUserFromConversation(Int32, Int32)
Declaration
void DeleteUserFromConversation(int conversationId, int userId)
Parameters
Type |
Name |
Description |
System.Int32 |
conversationId |
|
System.Int32 |
userId |
|
|
Improve this Doc
View Source
GetArchiveBoxView(Int32, Int32, Int32, Int32, String, Boolean)
Declaration
IDataReader GetArchiveBoxView(int userId, int portalId, int afterMessageId, int numberOfRecords, string sortColumn, bool sortAscending)
Parameters
Type |
Name |
Description |
System.Int32 |
userId |
|
System.Int32 |
portalId |
|
System.Int32 |
afterMessageId |
|
System.Int32 |
numberOfRecords |
|
System.String |
sortColumn |
|
System.Boolean |
sortAscending |
|
Returns
Type |
Description |
IDataReader |
|
|
Improve this Doc
View Source
GetInBoxView(Int32, Int32, Int32, Int32, String, Boolean, MessageReadStatus, MessageArchivedStatus, MessageSentStatus)
Declaration
IDataReader GetInBoxView(int userId, int portalId, int afterMessageId, int numberOfRecords, string sortColumn, bool sortAscending, MessageReadStatus readStatus, MessageArchivedStatus archivedStatus, MessageSentStatus sentStatus)
Parameters
Returns
Type |
Description |
IDataReader |
|
|
Improve this Doc
View Source
GetLastSentMessage(Int32, Int32)
Declaration
IDataReader GetLastSentMessage(int userId, int portalId)
Parameters
Type |
Name |
Description |
System.Int32 |
userId |
|
System.Int32 |
portalId |
|
Returns
Type |
Description |
IDataReader |
|
|
Improve this Doc
View Source
GetMessage(Int32)
Declaration
IDataReader GetMessage(int messageId)
Parameters
Type |
Name |
Description |
System.Int32 |
messageId |
|
Returns
Type |
Description |
IDataReader |
|
|
Improve this Doc
View Source
GetMessageAttachment(Int32)
Declaration
IDataReader GetMessageAttachment(int messageAttachmentId)
Parameters
Type |
Name |
Description |
System.Int32 |
messageAttachmentId |
|
Returns
Type |
Description |
IDataReader |
|
|
Improve this Doc
View Source
GetMessageAttachmentsByMessage(Int32)
Declaration
IList<MessageFileView> GetMessageAttachmentsByMessage(int messageId)
Parameters
Type |
Name |
Description |
System.Int32 |
messageId |
|
Returns
|
Improve this Doc
View Source
GetMessageRecipient(Int32)
Declaration
IDataReader GetMessageRecipient(int messageRecipientId)
Parameters
Type |
Name |
Description |
System.Int32 |
messageRecipientId |
|
Returns
Type |
Description |
IDataReader |
|
|
Improve this Doc
View Source
GetMessageRecipientByMessageAndUser(Int32, Int32)
Declaration
IDataReader GetMessageRecipientByMessageAndUser(int messageId, int userId)
Parameters
Type |
Name |
Description |
System.Int32 |
messageId |
|
System.Int32 |
userId |
|
Returns
Type |
Description |
IDataReader |
|
|
Improve this Doc
View Source
GetMessageRecipientsByMessage(Int32)
Declaration
IDataReader GetMessageRecipientsByMessage(int messageId)
Parameters
Type |
Name |
Description |
System.Int32 |
messageId |
|
Returns
Type |
Description |
IDataReader |
|
|
Improve this Doc
View Source
GetMessageRecipientsByUser(Int32)
Declaration
IDataReader GetMessageRecipientsByUser(int userId)
Parameters
Type |
Name |
Description |
System.Int32 |
userId |
|
Returns
Type |
Description |
IDataReader |
|
|
Improve this Doc
View Source
GetMessagesBySender(Int32, Int32)
Declaration
IDataReader GetMessagesBySender(int messageId, int portalId)
Parameters
Type |
Name |
Description |
System.Int32 |
messageId |
|
System.Int32 |
portalId |
|
Returns
Type |
Description |
IDataReader |
|
|
Improve this Doc
View Source
GetMessageThread(Int32, Int32, Int32, Int32, String, Boolean, ref Int32)
Declaration
IDataReader GetMessageThread(int conversationId, int userId, int afterMessageId, int numberOfRecords, string sortColumn, bool sortAscending, ref int totalRecords)
Parameters
Type |
Name |
Description |
System.Int32 |
conversationId |
|
System.Int32 |
userId |
|
System.Int32 |
afterMessageId |
|
System.Int32 |
numberOfRecords |
|
System.String |
sortColumn |
|
System.Boolean |
sortAscending |
|
System.Int32 |
totalRecords |
|
Returns
Type |
Description |
IDataReader |
|
|
Improve this Doc
View Source
GetNextMessagesForDigestDispatch(Int32, Guid, Int32)
Declaration
IDataReader GetNextMessagesForDigestDispatch(int frequecy, Guid schedulerInstance, int batchSize)
Parameters
Type |
Name |
Description |
System.Int32 |
frequecy |
|
Guid |
schedulerInstance |
|
System.Int32 |
batchSize |
|
Returns
Type |
Description |
IDataReader |
|
|
Improve this Doc
View Source
GetNextMessagesForInstantDispatch(Guid, Int32)
Declaration
IDataReader GetNextMessagesForInstantDispatch(Guid schedulerInstance, int batchSize)
Parameters
Type |
Name |
Description |
Guid |
schedulerInstance |
|
System.Int32 |
batchSize |
|
Returns
Type |
Description |
IDataReader |
|
|
Improve this Doc
View Source
GetSentBoxView(Int32, Int32, Int32, Int32, String, Boolean)
Declaration
IDataReader GetSentBoxView(int userId, int portalId, int afterMessageId, int numberOfRecords, string sortColumn, bool sortAscending)
Parameters
Type |
Name |
Description |
System.Int32 |
userId |
|
System.Int32 |
portalId |
|
System.Int32 |
afterMessageId |
|
System.Int32 |
numberOfRecords |
|
System.String |
sortColumn |
|
System.Boolean |
sortAscending |
|
Returns
Type |
Description |
IDataReader |
|
|
Improve this Doc
View Source
GetUserPreference(Int32, Int32)
Declaration
IDataReader GetUserPreference(int portalId, int userId)
Parameters
Type |
Name |
Description |
System.Int32 |
portalId |
|
System.Int32 |
userId |
|
Returns
Type |
Description |
IDataReader |
|
|
Improve this Doc
View Source
MarkMessageAsDispatched(Int32, Int32)
Declaration
void MarkMessageAsDispatched(int messageId, int recipientId)
Parameters
Type |
Name |
Description |
System.Int32 |
messageId |
|
System.Int32 |
recipientId |
|
|
Improve this Doc
View Source
MarkMessageAsSent(Int32, Int32)
Declaration
void MarkMessageAsSent(int messageId, int recipientId)
Parameters
Type |
Name |
Description |
System.Int32 |
messageId |
|
System.Int32 |
recipientId |
|
|
Improve this Doc
View Source
SaveMessage(Message, Int32, Int32)
Declaration
int SaveMessage(Message message, int portalId, int createUpdateUserId)
Parameters
Type |
Name |
Description |
Message |
message |
|
System.Int32 |
portalId |
|
System.Int32 |
createUpdateUserId |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
SaveMessageAttachment(MessageAttachment, Int32)
Declaration
int SaveMessageAttachment(MessageAttachment messageAttachment, int createUpdateUserId)
Parameters
Type |
Name |
Description |
MessageAttachment |
messageAttachment |
|
System.Int32 |
createUpdateUserId |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
SaveMessageRecipient(MessageRecipient, Int32)
Declaration
int SaveMessageRecipient(MessageRecipient messageRecipient, int createUpdateUserId)
Parameters
Type |
Name |
Description |
MessageRecipient |
messageRecipient |
|
System.Int32 |
createUpdateUserId |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
SetUserPreference(Int32, Int32, Int32, Int32)
Declaration
void SetUserPreference(int portalId, int userId, int messagesEmailFrequency, int notificationsEmailFrequency)
Parameters
Type |
Name |
Description |
System.Int32 |
portalId |
|
System.Int32 |
userId |
|
System.Int32 |
messagesEmailFrequency |
|
System.Int32 |
notificationsEmailFrequency |
|
|
Improve this Doc
View Source
UpdateMessageArchivedStatus(Int32, Int32, Boolean)
Declaration
void UpdateMessageArchivedStatus(int conversationId, int userId, bool archived)
Parameters
Type |
Name |
Description |
System.Int32 |
conversationId |
|
System.Int32 |
userId |
|
System.Boolean |
archived |
|
|
Improve this Doc
View Source
UpdateMessageReadStatus(Int32, Int32, Boolean)
Declaration
void UpdateMessageReadStatus(int conversationId, int userId, bool read)
Parameters
Type |
Name |
Description |
System.Int32 |
conversationId |
|
System.Int32 |
userId |
|
System.Boolean |
read |
|
Extension Methods