Persistent Chat samples

Code sample topic

Learn about the Persistent Chat-related quick-start samples that are installed with Microsoft Lync 2013 SDK.

Applies to: Lync 2013 | Lync Server 2013

Persistent Chat samples

The following sample applications demonstrate how to add chat room features to your Microsoft Lync 2013 SDK-enabled application.

Application

Description

GetMessages

The GetMessages sample application shows how to get messages that have been posted to a Persistent Chat room and then display any new message that are posted to the chat room. In addition, the sample shows how to get the chat rooms that are in a user’s contact list and keep that room collection synchronized with the contact list.

%PROGRAMFILES(X86)%\Microsoft Office 2013\LyncSDK\Samples\microsamples.zip\PersistentChat_GetMessages

FollowedRoomList

The FollowedRoomList sample application shows how to get the Persistent Chat rooms that are in a user’s contact list and keep that room collection synchronized with the contact list.

%PROGRAMFILES(X86)%\Microsoft Office 2013\LyncSDK\Samples\microsamples.zip\PersistentChat_FollowedRoomList

RoomQuery

The RoomQuery sample application shows how to get a collection of Persistent Chat rooms that are not in a user’s contact list.

%PROGRAMFILES(X86)%\Microsoft Office 2013\LyncSDK\Samples\microsamples.zip\PersistentChat_RoomQuery

PostMessage

The PostMessage sample application shows how to post a plain-text message to a Persistent Chat room in a user’s contact list and verify that the message posted successfully. In addition, the sample shows how to get a chat room from the contact list.

%PROGRAMFILES(X86)%\Microsoft Office 2013\LyncSDK\Samples\microsamples.zip\PersistentChat_PostMessage

GetParticipants

The GetParticipants sample application shows how to get a list of Persistent Chat room participants. In addition, the sample shows how to get a chat room from the contact list.

%PROGRAMFILES(X86)%\Microsoft Office 2013\LyncSDK\Samples\microsamples.zip\PersistentChat_GetParticipants

FilterMessageAddIn

The FilterMessageAddIn sample application shows how to get a hosting group for a Persistent Chat room, catch outgoing messages before they are posted to the hosting chat room, run filtering and formatting logic on the messages, and then send the resulting message to the hosting chat room.

%PROGRAMFILES(X86)%\Microsoft Office 2013\LyncSDK\Samples\microsamples.zip\PersistentChat_FilterMessageAddIn

See also