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: 8.2.23
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
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
See Also