Click or drag to resize
InitiatedChats Class
This class holds initiated chat requests in cache. There are two caches grouped by UserID and ContactID, so checking for request is fast. Cache invalidates itself after certain amount of time (no manual invalidation).
Inheritance Hierarchy
SystemObject
  CMS.ChatInitiatedChats

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 9.0.0
Syntax
C#
public class InitiatedChats

The InitiatedChats type exposes the following members.

Constructors
  NameDescription
Public methodInitiatedChats
Constructs InitiatedChats. Initializes cache wrappers.
Top
Methods
  NameDescription
Public methodGetInitiatedChatRequest
Gets Initiated chat request by ContactID or UserID if exists. First it searches request by contactID, if request is found, it is returned. Then it searches by userID. If request is not found or was created before changedSince null is returned.
Public methodInvalidateContactIDCache
Invalidates cache organized by ContactID. So on the next call to GetInitiatedChatRequest, result will be 100% accurate.
Public methodInvalidateUserIDCache
Invalidates cache organized by UserID. So on the next call to GetInitiatedChatRequest, result will be 100% accurate.
Top
See Also