Click or drag to resize
ChatNotificationInfoProviderInsertNotification Method
Inserts new notification to the database. If there is already an unread notification with the same sender, receiver and roomID, the new one is not inserted!

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 9.0.0
Syntax
C#
public static void InsertNotification(
	ChatNotificationTypeEnum type,
	int senderID,
	int receiverID,
	Nullable<int> roomID,
	Nullable<int> siteID
)

Parameters

type
Type: CMS.ChatChatNotificationTypeEnum
Type of notification
senderID
Type: SystemInt32
Sender (chat user ID)
receiverID
Type: SystemInt32
Receiver (chat user ID)
roomID
Type: SystemNullableInt32
Room ID (in case of join room, leave room, etc. notifications). Null, if notification is not room related.
siteID
Type: SystemNullableInt32
Notification will be assigned to this site (null is global)
See Also