Interface IChatMessageConverter
Defines methods that can be used to convert data objects to chat messages and vice versa.
Namespace: Syncfusion.XForms.Chat
Assembly: Syncfusion.SfChat.XForms.dll
Syntax
public interface IChatMessageConverter
Methods
ConvertToChatMessage(Object, SfChat)
Converts given data object to a chat message.
Declaration
IMessage ConvertToChatMessage(object data, SfChat chat)
Parameters
Type | Name | Description |
---|---|---|
System.Object | data | The data object to be converted as a chat message. |
SfChat | chat | Instance of SfChat. |
Returns
Type | Description |
---|---|
IMessage | Returns the data object as a chat message. |
ConvertToData(Object, SfChat)
Converts the given chat message to a data object.
Declaration
object ConvertToData(object chatMessage, SfChat chat)
Parameters
Type | Name | Description |
---|---|---|
System.Object | chatMessage | The chat message that is to be converted as a data object. |
SfChat | chat | Instance of SfChat. |
Returns
Type | Description |
---|---|
System.Object | Returns the chat message as a data object. |