Skip to content
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
14 changes: 14 additions & 0 deletions TwitchLib.EventSub.Core/Models/Bits/CustomPowerUp.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace TwitchLib.EventSub.Core.Models.Bits;

public class CustomPowerUp
{
/// <summary>
/// The title of the custom Power-up.
/// </summary>
public string Title { get; set; } = string.Empty;

/// <summary>
/// The ID of the custom Power-up.
/// </summary>
public string RewardId { get; set; } = string.Empty;
}
14 changes: 14 additions & 0 deletions TwitchLib.EventSub.Core/Models/Chat/WatchStreak.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace TwitchLib.EventSub.Core.Models.Chat;

public class WatchStreak
{
/// <summary>
/// The number of consecutive broadcasts for which the user has been watching.
/// </summary>
public int StreakCount { get; set; }

/// <summary>
/// The number of channel points awarded for the Watch Streak milestone.
/// </summary>
public int ChannelPointsAwarded { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public sealed class ChannelBitsUse
/// </summary>
public int Bits { get; set; }
/// <summary>
/// Possible values are: cheer, power_up
/// Possible values are: cheer, power_up, custom_power_up
/// </summary>
public string Type { get; set; } = string.Empty;
/// <summary>
Expand All @@ -49,4 +49,8 @@ public sealed class ChannelBitsUse
/// Data about Power-up.
/// </summary>
public PowerUp? PowerUp { get; set; }
/// <summary>
/// Data about a custom Power-up.
/// </summary>
public CustomPowerUp? CustomPowerUp { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ public sealed class ChannelChatNotification
/// </summary>
public string? SourceBroadcasterUserId { get; set; }

/// <summary>
/// Information about the Watch Streak event. Null if notice_type is not watch_streak.
/// </summary>
public WatchStreak? WatchStreak { get; set; }

/// <summary>
/// Optional. The user name of the broadcaster of the channel the message was sent from.
/// </summary>
Expand All @@ -157,11 +162,18 @@ public sealed class ChannelChatNotification
/// Optional. The list of chat badges for the chatter in the channel the message was sent from.
/// </summary>
public ChatBadge[]? SourceBadges { get; set; }

/// <summary>
/// Information about the sub event. Null if notice_type is not shared_chat_sub.
/// </summary>
public ChatSub? SharedChatSub { get; set; }

/// <summary>
/// Whether the notification is only sent to the source channel.
/// Is null if the notification is not in a shared chat session.
/// </summary>
public bool? IsSourceOnly { get; set; }

/// <summary>
/// Information about the resub event. Null if notice_type is not shared_chat_resub.
/// </summary>
Expand Down
Loading