IChatService Ping Method Kentico 8.0 API Reference
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: 8.0.0.0 (8.0.5239.26125)

Parameters

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

Return Value

Type: ChatGeneralResponse PingResultData 
PingRoomsResultData
See Also