InterfaceIChatItemConverter
Interface that defines how chat items should be converted.
Definition
Namespace:Telerik.Maui.Controls.Chat
Assembly:Telerik.Maui.Controls.dll
Syntax:
public interface IChatItemConverter
Methods
ConvertToChatItem(object, ChatItemConverterContext)
Converts a data item to a chat item. In general here you need to create and set up the corresponding ChatItem for the given business object.
Declaration
ChatItem ConvertToChatItem(object dataItem, ChatItemConverterContext context)
Parameters
dataItem
The item to be converted.
context
The respective ChatItemConverterContext.
Returns
An ChatItem instance.
ConvertToDataItem(object, ChatItemConverterContext)
Converts a message to a data item. In general here you need to create an instance of your business object that the RadChat will try to add automatically to the ItemsSource collection. Usually the message is the string from the entry in the chat, and this method is invoked when the Send button is pressed.
Declaration
object ConvertToDataItem(object message, ChatItemConverterContext context)
Parameters
message
The message to be converted.
context
The respective ChatItemConverterContext.
Returns
The corresponding data item.