Click or drag to resize
IChatServicePing Method
Keeps user online in global list of chat online users (this method needs to be called periodically). Checks if there were any changes in: - rooms (new room added, changed name, etc.) since lastRoomsChange. - counts of users in rooms since lastUsersInRoomsChange. - global online users since lastOnlineUsersChange. - notifications for online user since lastNotificationChange. If any of this objects has changed, changes are send back to client. If any of params is null, its objects are not checked. If param is 0, it is the first request and all objects are returned.

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 12.0.0
Syntax
C#
ChatGeneralResponse<PingResultData> Ping(
	Nullable<long> lastRoomsChange,
	Nullable<long> lastUsersInRoomsChange,
	Nullable<long> lastOnlineUsersChange,
	Nullable<long> lastNotificationChange
)

Parameters

lastRoomsChange
Type: SystemNullableInt64
Time of last check for rooms list made by this client.
lastUsersInRoomsChange
Type: SystemNullableInt64
Time of last check for counts of users in rooms made by this client.
lastOnlineUsersChange
Type: SystemNullableInt64
Time of last check for global online users made by this client.
lastNotificationChange
Type: SystemNullableInt64
Time of last check for notifications made by this client.

Return Value

Type: ChatGeneralResponsePingResultData
PingRoomsResultData
See Also