diff --git a/TwitchLib.EventSub.Core/Models/Whisper/WhisperMessage.cs b/TwitchLib.EventSub.Core/Models/Whisper/WhisperMessage.cs new file mode 100644 index 0000000..71d4a54 --- /dev/null +++ b/TwitchLib.EventSub.Core/Models/Whisper/WhisperMessage.cs @@ -0,0 +1,12 @@ +namespace TwitchLib.EventSub.Core.Models.Whisper; + +/// +/// Represents a whisper message +/// +public sealed class WhisperMessage +{ + /// + /// The body of the whisper message. + /// + public string Text { get; set; } = string.Empty; +} diff --git a/TwitchLib.EventSub.Core/SubscriptionTypes/User/UserWhisperMessage.cs b/TwitchLib.EventSub.Core/SubscriptionTypes/User/UserWhisperMessage.cs new file mode 100644 index 0000000..170ac20 --- /dev/null +++ b/TwitchLib.EventSub.Core/SubscriptionTypes/User/UserWhisperMessage.cs @@ -0,0 +1,44 @@ +using TwitchLib.EventSub.Core.Models.Whisper; + +namespace TwitchLib.EventSub.Core.SubscriptionTypes.User; + +/// +/// Channel Whisper Received subscription type model +/// Description: +/// The user.whisper.message subscription type sends a notification when a user receives a whisper. +/// +public sealed class UserWhisperMessage +{ + /// + /// The ID of the user sending the message. + /// + public string FromUserId { get; set; } = string.Empty; + /// + /// The name of the user sending the message. + /// + public string FromUserLogin { get; set; } = string.Empty; + /// + /// The login of the user sending the message. + /// + public string FromUserName { get; set; } = string.Empty; + /// + /// The ID of the user receiving the message. + /// + public string ToUserId { get; set; } = string.Empty; + /// + /// The login of the user receiving the message. + /// + public string ToUserLogin { get; set; } = string.Empty; + /// + /// The name of the user receiving the message. + /// + public string ToUserName { get; set; } = string.Empty; + /// + /// The whisper ID. + /// + public string WhisperId { get; set; } = string.Empty; + /// + /// The structured whisper message + /// + public WhisperMessage Whisper { get; set; } = new(); +}