Click or drag to resize
ChatServicePing 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. If user is not online on chat, only CurrentChatUserState will be returned and data (rooms, online users, etc.) will be null.

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 8.2.23
Syntax
C#
public 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

Implements

IChatServicePing(NullableInt64, NullableInt64, NullableInt64, NullableInt64)
See Also