alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class MessageReplyModel

    Represents a reply message in a threaded conversation with attachment support.

    Inheritance
    object
    MessageReplyModel
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.InteractiveChat
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class MessageReplyModel
    Remarks

    This class extends the standard reply message functionality to include file attachments.

    Use this model to create reply messages that contain files within threaded conversations.

    Attachments in replies appear in the context of the conversation thread.

    Examples
    // Create a reply message with text and attachment
    var reply = new MessageReply
    {
        Id = "reply1",
        Text = "Here is the requested document",
        ParentId = "msg1",
        Time = DateTime.Now,
        Attachments = new FileInfo
         {
             Name = "report.pdf",
             Size = 1048576,
             Url = "/uploads/report.pdf"
         }
    };

    Constructors

    MessageReplyModel()

    Declaration
    public MessageReplyModel()

    Properties

    AttachedFile

    Gets or sets the collection of file attachments included in the reply message.

    Declaration
    public FileInfo AttachedFile { get; set; }
    Property Value
    Type Description
    FileInfo

    A List<T> of FileInfo objects representing the attached files. The default value is an empty collection.

    Remarks

    This property allows you to include one or more file attachments within a reply message.

    Attachments in replies are displayed in the threaded conversation context.

    Each FileInfo object contains metadata about the attachment such as file name, size, and URL.

    Examples
    var reply = new MessageReply
    {
        Text = "Here are multiple files for reference"
    };
    
    // Add attachments to the reply
    reply.AttachedFile = new FileInfo
     {
         Name = "diagram.png",
         Size = 128000,
         Url = "/files/diagram.png"
     }
    };

    MentionUsers

    Gets or sets the array of users mentioned in the message.

    Declaration
    public List<UserModel> MentionUsers { get; set; }
    Property Value
    Type Description
    List<UserModel>

    An array of UserModel objects representing users referenced via the @mention feature. The default value is an empty array.

    Remarks

    This property contains the list of users referenced via the @mention feature in the message text.

    It is populated when mentions are selected from the suggestion popup during message composition.

    The property is optional and defaults to an empty array if no mentions are included in the message.

    MessageID

    Gets or sets the unique identifier of the original replied message.

    Declaration
    public string MessageID { get; set; }
    Property Value
    Type Description
    string

    A string representing the unique message identifier. The default value is an empty string.

    Remarks

    This identifier can be used for referencing, tracking, or linking to the original message within the chat system.

    Supports message navigation, anchoring in threaded conversations, and maintaining referential integrity between related messages.

    Text

    Gets or sets the content of the original replied message.

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    string

    A string representing the text content of the original message. The default value is an empty string.

    Remarks

    Used to display a snippet or full text of the original message being replied to. This content is typically rendered in a visually distinct section above the current message to provide context.

    The text may be truncated or formatted differently depending on the chat interface's design requirements.

    Timestamp

    Gets or sets the date and time when the original message was sent.

    Declaration
    public DateTime? Timestamp { get; set; }
    Property Value
    Type Description
    DateTime?

    A DateTime representing the original message timestamp. The default value is MinValue.

    Remarks

    Used to provide temporal context in reply previews, showing when the original message was posted relative to the current message.

    This timestamp helps users understand the chronological relationship between messages in threaded conversations.

    TimestampFormat

    Gets or sets the format used to display the message timestamp.

    Declaration
    public string TimestampFormat { get; set; }
    Property Value
    Type Description
    string

    A string specifying the timestamp display format. The default value is an empty string.

    Remarks

    Supports standard .NET date and time format strings (e.g., "dd/MM/yyyy hh:mm", "MMM dd, yyyy"). When empty, the format defaults to the application's current culture settings.

    This property ensures consistent time display across different locales and platforms, allowing for customized timestamp presentation in reply contexts.

    User

    Gets or sets the user who sent the original replied message.

    Declaration
    public UserModel User { get; set; }
    Property Value
    Type Description
    UserModel

    A UserModel containing the original message author's information. The default value is null.

    Remarks

    This property holds a reference to the UserModel of the original sender, enabling the display of user-specific details such as name, avatar, or role in the reply context.

    When null, the reply context may display generic or anonymous user information depending on the chat implementation.

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved