IAuthorConverter
Interface
Definition
Namespace:Telerik.Maui.Controls.Chat
Assembly:Telerik.Maui.Controls.dll
Syntax:
C#
public interface IAuthorConverter
Methods
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.
C#
Author ConvertToAuthor(object dataItem, AuthorConverterContext context)
The item to be converted.
contextAuthorConverterContextThe respective AuthorConverterContext.
Returns:An Author instance.