Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Channel Warning related subscription types #35

Merged
merged 3 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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];
}
Loading