A conversation is a logical container for communication between two or more contacts. As a user and contact
communicate with one another, text messages and typing indicators are transmitted to each participant of
the conversation. Applications commonly render these communications in a conversation window which has an input area and a
history of communications between the user and contact.
To create a conversation with a Contact, use the Create(Contact)
method of the Conversations property on User. Once a Conversation has been created,
a TextMessage can be sent using the SendMessage(Message) method of conversation.
The CollectionChanged event of the Conversations property on
User is raised when conversations are added to the collection. This event should be handled to detect
when the user has been invited to conversations by other contacts.
The MessageReceived event is raised whenever messages from other participants of the conversation
are delivered to the user. The event should be handled to detect messages that have been received.
To add more participants to a conversation, the InviteContact(Contact) method can be used.