Avaya Client Services API Reference (Windows)
Avaya Client Services API Reference (Windows)
Avaya.ClientServices
Message Class
Message Methods
SetBodyAndReportTyping Method
SetBodyAndReportTyping Method (String, Message.CompletionHandler)
SetBodyAndReportTyping Method (String, String, Message.CompletionHandler)

# Message SetBodyAndReportTyping Method (String, String, Message CompletionHandler)

Sets the plain text body and HTML body of the draft message along with "is typing" chat state.

Namespace: Avaya.ClientServices
Assembly: AvayaClientServices (in AvayaClientServices.dll) Version: 550.0.60.0
Syntax
C#
Copy

    public void SetBodyAndReportTyping(
    	string plaintTextBody,
    	string htmlBody,
    	MessageCompletionHandler completionHandler
    )

#### Parameters

plaintTextBody
  Type: System
  String
  The new message body to be set in plain text format.
htmlBody
  Type: System
  String
  A client application that supports rich text messaging can set htmlBody with text in HTML format. htmlBody should be empty if client application does not support HTML capability.
completionHandler
  Type: Avaya.ClientServices
  Message
  CompletionHandler
  The completion handler which will be invoked when the operation completes. Operation success or failure is reported through this handler.

Remarks
Client application having HTML capability can set htmlBody with text in HTML format. Client application must set plain text body.If plain text body is empty, EmptyMessage error shall be reported. If the application doesn't want to repeatedly call this method with new body text just to report that the user is typing, it can use the ReportTyping(Boolean) method to do so.
See Also

#### Reference

Message Class
SetBodyAndReportTyping Overload
Avaya.ClientServices Namespace
Message
ReportTyping(Boolean)
Message
UpdateBodyCapability
Message
Body
Message
BodyChanged
Message
SetBodyAndReportTyping(String, Message
CompletionHandler)
MessagingError
EmptyMessage

© 2017 Avaya LLC. All Rights Reserved.