You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
747 B
C#
25 lines
747 B
C#
|
1 month ago
|
using System.ComponentModel;
|
||
|
|
|
||
|
|
namespace TinyChat;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Provides data and cancellation support for the event before a message gets sent.
|
||
|
|
/// </summary>
|
||
|
|
/// <remarks>
|
||
|
|
/// Initializes a new instance of the <see cref="MessageSendingEventArgs"/> class.
|
||
|
|
/// </remarks>
|
||
|
|
/// <param name="sender">The sender of the message.</param>
|
||
|
|
/// <param name="content">The message content being sent.</param>
|
||
|
|
public class MessageSendingEventArgs(ISender sender, IChatMessageContent content) : CancelEventArgs
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// Gets the message content being sent.
|
||
|
|
/// </summary>
|
||
|
|
public IChatMessageContent Content { get; } = content;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Gets the sender of the message.
|
||
|
|
/// </summary>
|
||
|
|
public ISender Sender { get; } = sender;
|
||
|
|
}
|