Class ChatUIMessage
Inheritance
Namespace: Syncfusion.EJ2.InteractiveChat
Assembly: Syncfusion.EJ2.dll
Syntax
public class ChatUIMessage : EJTagHelper
Constructors
ChatUIMessage()
Declaration
public ChatUIMessage()
Properties
Author
Specifies the author of the message in the Chat UI component.
This property references a UserModel
object that contains details about the user who sent the message.
Declaration
public object Author { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
Type |
---|
Syncfusion.EJ2.MvcTemplate<System.Object> |
Id
Specifies the unique identifier for each message sent in the Chat UI component. Represents a string that uniquely identifies a message for tracking and managing individual messages within the chat.
Declaration
public override string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "'" |
Overrides
Status
Specifies the status of the message in the Chat UI component. Represents the current status of the message, such as sent, received, or read. It helps in tracking the messages within the chat component.
Declaration
public object Status { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Text
Represents the content of the message sent by a user in the Chat UI component.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
TimeStamp
Specifies the timestamp of when the message was sent.
This property holds a Date
object that represents the exact time the message was created, providing context to the conversation flow.
Declaration
public object TimeStamp { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
TimeStampFormat
Specifies the format of the timestamp for displaying the message's sending time. By default, the format is set based on the culture of the application. You can customize the format using a specific pattern, such as "'dd/MM/yyyy hh:mm'" in string format.
Declaration
public string TimeStampFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |