New to Telerik UI for .NET MAUIStart a free 30-day trial

Interface that defines the contract for conversion from a business object to an Author in the context of a RadChat.

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)
Parameters:dataItemobject

The item to be converted.

contextAuthorConverterContext

The respective AuthorConverterContext.

Returns:

Author

An Author instance.