Class ChatMessage
Inheritance
object
ChatMessage
Assembly: .dll
Syntax
public abstract class ChatMessage
Constructors
ChatMessage()
Declaration
ChatMessage(Content)
Declaration
public ChatMessage(Content content = null)
Parameters
Type |
Name |
Description |
Content |
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, Content)
Declaration
public static ChatMessage Create(ChatRole role, Content content = null)
Parameters
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
implicit operator ChatMessage(string)
Declaration
public static implicit operator ChatMessage(string message)
Parameters
Type |
Name |
Description |
string |
message |
|
Returns
Extension Methods