Skip to content

Commit

Permalink
Merge pull request #35 from Hampo/dev
Browse files Browse the repository at this point in the history
Add `Channel Warning` related subscription types
  • Loading branch information
Mahsaap authored Nov 5, 2024
2 parents ebb3669 + 2eb8b14 commit d80beed
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
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;
}
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];
}

0 comments on commit d80beed

Please sign in to comment.