0

プログラムで Lync IM チャットの会話を読みたいです。Lync クライアントは IM ログを .HIST ファイルに保存します。.HIST ファイルの形式またはこのファイルの読み方を知っている人はいますか?

また、Lync SDK を使用することで、Lync IM チャットの会話を取得できることも読みました。 http://blog.thoughtstuff.co.uk/2013/01/tracking-lync-conversations-in-code/このブログでは、オーディオ ビデオ通話の会話をコードで追跡する方法について説明しています。IM チャットの会話を読むために実装する方法を誰か教えてもらえますか?

4

1 に答える 1

0

PaticipantAdded イベントの下で InstantMessageRecieved イベントをリッスンできます。以下のサンプルコードを参照してください。

  // Add ParticipantAdded event
  conversation.ParticipantAdded += this.Conversation_ParticipantAdded;

  private void Conversation_ParticipantAdded(object sender, ParticipantCollectionChangedEventArgs e) {
    var instantMessageModality = e.Participant.Modalities[ModalityTypes.InstantMessage] as InstantMessageModality;
    instantMessageModality.InstantMessageReceived += this.Participant_InstantMessageReceived;
  }

  private void Participant_InstantMessageReceived(object sender, MessageSentEventArgs e) {
    // Use e.Text to read the chat information
  }
于 2015-04-13T03:36:35.950 に答える