Interface IAuthorConverter
Interface that defines the contract for conversion from a business object to an Author in the context of a RadChat.
Namespace: Telerik.Maui.Controls.Chat
Assembly: Telerik.Maui.Controls.dll
Syntax
public interface IAuthorConverter
Methods
ConvertToAuthor(Object, AuthorConverterContext)
Converts a data item to an Author instance. Return already existing Author instances, instead of always creating a new Author. Use the provided context to get the TypingIndicator and its Authors collection from where you can get the already existing authors. If an author does not exist, you can create one and add it to the Authors collection from where you can use it next time.
Declaration
Author ConvertToAuthor(object dataItem, AuthorConverterContext context)
Parameters
System.Object
dataItem
The item to be converted. |
AuthorConverterContext
context
The respective AuthorConverterContext. |
Returns
Author
An Author instance. |