Class TextMessage
public class TextMessage : ICanGetTextContent, IMessage
- Inheritance
-
TextMessage
- Implements
- Inherited Members
- Extension Methods
Constructors
TextMessage(Role, string, string?)
public TextMessage(Role role, string content, string? from = null)
Parameters
TextMessage(TextMessageUpdate)
public TextMessage(TextMessageUpdate update)
Parameters
update
TextMessageUpdate
Properties
Content
public string Content { get; set; }
Property Value
From
public string? From { get; set; }
Property Value
Role
public Role Role { get; set; }
Property Value
Methods
GetContent()
public string? GetContent()
Returns
ToString()
public override string ToString()
Returns
Update(TextMessageUpdate)
public void Update(TextMessageUpdate update)
Parameters
update
TextMessageUpdate