Interface
IAuthorConverter

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:

cs-api-definition
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

cs-api-definition
Author ConvertToAuthor(object dataItem, AuthorConverterContext context)

Parameters

dataItem

object

The item to be converted.

context

AuthorConverterContext

The respective AuthorConverterContext.

Returns

Author

An Author instance.