Class ChatMessage
Inheritance
object
ChatMessage
Assembly: .dll
Syntax
public abstract class ChatMessage
Constructors
ChatMessage()
Declaration
ChatMessage(string)
Declaration
public ChatMessage(string content = null)
Parameters
Type |
Name |
Description |
string |
content |
|
Properties
Content
The contents of the user message.
Declaration
public Content Content { get; set; }
Property Value
Name
Optional. An optional name for the participant.
Provides the model information to differentiate between participants of the same role.
Declaration
public string Name { get; set; }
Property Value
Role
The role of the messages author.
Declaration
public abstract ChatRole Role { get; }
Property Value
SentAt
Declaration
public UnixTime SentAt { get; }
Property Value
Type |
Description |
UnixTime |
|
Methods
Create(ChatRole, string)
Declaration
public static ChatMessage Create(ChatRole role, string content = null)
Parameters
Type |
Name |
Description |
ChatRole |
role |
|
string |
content |
|
Returns
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
A string that represents the current object.
|
Overrides
object.ToString()
Operators
implicit operator string(ChatMessage)
Declaration
public static implicit operator string(ChatMessage message)
Parameters
Returns
Extension Methods