Show / Hide Table of Contents

Class Message

Represents a message in the chat system with metadata about the sender and timing.

Inheritance
object
Message
Implements
IEquatable<Message>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VulcanAI.Connectors
Assembly: VulcanAI.dll
Syntax
public record Message : IEquatable<Message>

Constructors

| Edit this page View Source

Message(string, string, string?)

Initializes a new instance of the Message class.

Declaration
public Message(string content, string sender, string? channel = null)
Parameters
Type Name Description
string content

The content of the message.

string sender

The name of the message sender.

string channel

The optional channel name where the message was sent.

Properties

| Edit this page View Source

Channel

Gets the optional channel name where the message was sent.

Declaration
public string? Channel { get; init; }
Property Value
Type Description
string
| Edit this page View Source

Content

Gets the content of the message.

Declaration
public string Content { get; init; }
Property Value
Type Description
string
| Edit this page View Source

Sender

Gets the name of the message sender.

Declaration
public string Sender { get; init; }
Property Value
Type Description
string
| Edit this page View Source

Timestamp

Gets the timestamp when the message was created.

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

Implements

IEquatable<T>
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX