-
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 #35 from Hampo/dev
Add `Channel Warning` related subscription types
- Loading branch information
Showing
2 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
TwitchLib.EventSub.Core/SubscriptionTypes/Channel/ChannelWarningAcknowledge.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,34 @@ | ||
namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel; | ||
|
||
/// <summary> | ||
/// Channel Warning Acknowledge subscription type model | ||
/// <para>Description:</para> | ||
/// <para>A user awknowledges a warning. Broadcasters and moderators can see the warning’s details.</para> | ||
/// </summary> | ||
public sealed class ChannelWarningAcknowledge | ||
{ | ||
/// <summary> | ||
/// The user ID of the broadcaster. | ||
/// </summary> | ||
public string BroadcasterUserId { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The login of the broadcaster. | ||
/// </summary> | ||
public string BroadcasterUserLogin { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The user name of the broadcaster. | ||
/// </summary> | ||
public string BroadcasterUserName { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The ID of the user that has acknowledged their warning. | ||
/// </summary> | ||
public string UserId { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The login of the user that has acknowledged their warning. | ||
/// </summary> | ||
public string UserLogin { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The user name of the user that has acknowledged their warning. | ||
/// </summary> | ||
public string UserName { get; set; } = string.Empty; | ||
} |
54 changes: 54 additions & 0 deletions
54
TwitchLib.EventSub.Core/SubscriptionTypes/Channel/ChannelWarningSend.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,54 @@ | ||
namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel; | ||
|
||
/// <summary> | ||
/// Channel Warning Send subscription type model | ||
/// <para>Description:</para> | ||
/// <para>A user is sent a warning. Broadcasters and moderators can see the warning’s details.</para> | ||
/// </summary> | ||
public sealed class ChannelWarningSend | ||
{ | ||
/// <summary> | ||
/// The user ID of the broadcaster. | ||
/// </summary> | ||
public string BroadcasterUserId { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The login of the broadcaster. | ||
/// </summary> | ||
public string BroadcasterUserLogin { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The user name of the broadcaster. | ||
/// </summary> | ||
public string BroadcasterUserName { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The user ID of the moderator who sent the warning. | ||
/// </summary> | ||
public string ModeratorUserId { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The login of the moderator. | ||
/// </summary> | ||
public string ModeratorUserLogin { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The user name of the moderator. | ||
/// </summary> | ||
public string ModeratorUserName { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The ID of the user being warned. | ||
/// </summary> | ||
public string UserId { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The login of the user being warned. | ||
/// </summary> | ||
public string UserLogin { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The user name of the user being. | ||
/// </summary> | ||
public string UserName { get; set; } = string.Empty; | ||
/// <summary> | ||
/// Optional. The reason given for the warning. | ||
/// </summary> | ||
public string Reason { get; set; } = string.Empty; | ||
/// <summary> | ||
/// Optional. The chat rules cited for the warning. | ||
/// </summary> | ||
public string[] ChatRulesCited { get; set; } = [string.Empty]; | ||
} |