Adapts an AI text message for the chat view and stores its current vote state.
Definition
Namespace:Telerik.WinControls.UI.ConversationalUI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class AIChatMessageDataItem : TextMessageDataItem, IDataItem, INotifyPropertyChanged
Inheritance: objectBaseChatDataItemTextMessageDataItemAIChatMessageDataItem
Implements:
Inherited Members
Constructors
Initializes a data item for an AI-generated text message.
public AIChatMessageDataItem(AIChatTextMessage message)
The AI response represented by this item.
Exceptions: NullReferenceExceptionmessage is null.
Properties
Gets whether the underlying AI message displays its response-action buttons.
public bool ShowButtonsArea { get; }
Returns true if the current message is not an AIChatTextMessage.
Gets or sets the vote currently stored for this response.
public VoteType VoteType { get; set; }
The default is Neutral; assigning a different value raises PropertyChanged.
Methods
Raises the owning chat element's copy event for this message; unless a handler marks the event handled, an AI text message's text is copied to the clipboard.
protected virtual void OnCopy()
Raises the owning chat element's regeneration event for this response.
protected virtual void OnRegenerateResponse()
The event notifies the application; it does not generate a replacement response by itself.
Notifies the owning chat element of a vote and stores that vote without raising a property-change notification.
protected virtual void OnUserVoted(VoteType voteType)
The vote selected by the user.