# Class Message | EchoHub Documentation

# Class Message

Namespace
  EchoHub.Core.Models

Assembly
  EchoHub.Core.dll

    public class Message

Inheritance
  object
  Message

Inherited Members
  object.GetType()
  object.MemberwiseClone()
  object.ToString()
  object.Equals(object)
  object.Equals(object, object)
  object.ReferenceEquals(object, object)
  object.GetHashCode()

## Constructors

### Message()

    public Message()

## Properties

### AttachmentFileName

    public string? AttachmentFileName { get; set; }

#### Property Value

string

### AttachmentFileSize

    public long? AttachmentFileSize { get; set; }

#### Property Value

long?

### AttachmentUrl

    public string? AttachmentUrl { get; set; }

#### Property Value

string

### Attachments

Files attached to this message. Empty for a plain text message.

    public List<Attachment> Attachments { get; set; }

#### Property Value

List<Attachment>

### Channel

    public Channel? Channel { get; set; }

#### Property Value

Channel

### ChannelId

    public Guid ChannelId { get; set; }

#### Property Value

Guid

### Content

The message text/caption. May be empty when the message only carries attachments.

    public required string Content { get; set; }

#### Property Value

string

### EmbedJson

    public string? EmbedJson { get; set; }

#### Property Value

string

### Id

    public Guid Id { get; set; }

#### Property Value

Guid

### ReplyToMessageId

Message this one replies to, if any. The target may since have been deleted.

    public Guid? ReplyToMessageId { get; set; }

#### Property Value

Guid?

### SenderUserId

    public Guid SenderUserId { get; set; }

#### Property Value

Guid

### SenderUsername

    public required string SenderUsername { get; set; }

#### Property Value

string

### SentAt

    public DateTimeOffset SentAt { get; set; }

#### Property Value

DateTimeOffset

### Type

    public MessageType Type { get; set; }

#### Property Value

MessageType