Converts between MessageModel and MessageBase types for use in the spreadsheet AI chat UI.
Definition
Namespace:Telerik.Windows.Controls.Spreadsheet.AI
Assembly:Telerik.Windows.Controls.Spreadsheet.dll
Syntax:
C#
public class SpreadsheetMessageConverter : IMessageConverter
Inheritance: objectSpreadsheetMessageConverter
Implements:
Constructors
Initializes a new instance of the SpreadsheetMessageConverter class.
C#
public SpreadsheetMessageConverter(string aiAuthorName)
The display name of the AI author.
Methods
Converts a MessageModel to a MessageBase instance.
C#
public MessageBase ConvertItem(object item)
The item to convert, expected to be of type MessageModel.
Returns:A TextMessage representing the message.
Implements:
Converts a MessageBase instance to a MessageModel.
C#
public object ConvertMessage(MessageBase message)
The message to convert, expected to be of type TextMessage.
Returns:A MessageModel representing the message.
Implements: