-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from AoshiW/WhisperReceived
add `Whisper Received`
- Loading branch information
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace TwitchLib.EventSub.Core.Models.Whisper; | ||
|
||
/// <summary> | ||
/// Represents a whisper message | ||
/// </summary> | ||
public sealed class WhisperMessage | ||
{ | ||
/// <summary> | ||
/// The body of the whisper message. | ||
/// </summary> | ||
public string Text { get; set; } = string.Empty; | ||
} |
44 changes: 44 additions & 0 deletions
44
TwitchLib.EventSub.Core/SubscriptionTypes/User/UserWhisperMessage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using TwitchLib.EventSub.Core.Models.Whisper; | ||
|
||
namespace TwitchLib.EventSub.Core.SubscriptionTypes.User; | ||
|
||
/// <summary> | ||
/// Channel Whisper Received subscription type model | ||
/// <para>Description:</para> | ||
/// <para>The user.whisper.message subscription type sends a notification when a user receives a whisper.</para> | ||
/// </summary> | ||
public sealed class UserWhisperMessage | ||
{ | ||
/// <summary> | ||
/// The ID of the user sending the message. | ||
/// </summary> | ||
public string FromUserId { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The name of the user sending the message. | ||
/// </summary> | ||
public string FromUserLogin { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The login of the user sending the message. | ||
/// </summary> | ||
public string FromUserName { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The ID of the user receiving the message. | ||
/// </summary> | ||
public string ToUserId { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The login of the user receiving the message. | ||
/// </summary> | ||
public string ToUserLogin { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The name of the user receiving the message. | ||
/// </summary> | ||
public string ToUserName { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The whisper ID. | ||
/// </summary> | ||
public string WhisperId { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The structured whisper message | ||
/// </summary> | ||
public WhisperMessage Whisper { get; set; } = new(); | ||
} |