Skip to content

Commit

Permalink
sealed appropiate classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Syzuna committed Nov 18, 2023
1 parent bc605c4 commit f9c81c7
Show file tree
Hide file tree
Showing 58 changed files with 58 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// <summary>
/// Whether a cooldown is enabled and what the cooldown is in seconds.
/// </summary>
public class GlobalCooldownSettings
public sealed class GlobalCooldownSettings
{
/// <summary>
/// Whether the setting is enabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/// <para>or</para>
/// <para>Whether a maximum per user per stream is enabled and what the maximum is.</para>
/// </summary>
public class MaxAmountSettings
public sealed class MaxAmountSettings
{
/// <summary>
/// Whether the setting is enabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// <summary>
/// Basic information about the reward that was redeemed, at the time it was redeemed.
/// </summary>
public class RedemptionReward
public sealed class RedemptionReward
{
/// <summary>
/// The reward identifier.
Expand Down
2 changes: 1 addition & 1 deletion TwitchLib.EventSub.Core/Models/Charity/CharityAmount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// <summary>
/// An object that contains the amount of charity related things.
/// </summary>
public class CharityAmount
public sealed class CharityAmount
{
/// <summary>
/// The monetary amount. The amount is specified in the currency’s minor unit. For example, the minor units for USD is cents, so if the amount is $5.50 USD, value is set to 550.
Expand Down
2 changes: 1 addition & 1 deletion TwitchLib.EventSub.Core/Models/Extensions/BitsProduct.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// <summary>
/// Additional information about a product acquired via a Twitch Extension Bits transaction.
/// </summary>
public class BitsProduct
public sealed class BitsProduct
{
/// <summary>
/// Product name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// <summary>
/// Describes a user's contribution to a HypeTrain
/// </summary>
public class HypeTrainContribution
public sealed class HypeTrainContribution
{
/// <summary>
/// The ID of the contributor.
Expand Down
2 changes: 1 addition & 1 deletion TwitchLib.EventSub.Core/Models/Polls/PollChoice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// <summary>
/// Defines a poll choice
/// </summary>
public class PollChoice
public sealed class PollChoice
{
/// <summary>
/// ID for the choice.
Expand Down
2 changes: 1 addition & 1 deletion TwitchLib.EventSub.Core/Models/Polls/PollVotingSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// <summary>
/// Whether Bits/ChannelPoints voting is enabled and its cost
/// </summary>
public class PollVotingSettings
public sealed class PollVotingSettings
{
/// <summary>
/// Indicates if Bits/Channel Points can be used for voting.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace TwitchLib.EventSub.Core.Models.Predictions
/// <summary>
/// Defines the outcomes of a prediction
/// </summary>
public class PredictionOutcomes
public sealed class PredictionOutcomes
{
/// <summary>
/// The outcome ID.
Expand Down
2 changes: 1 addition & 1 deletion TwitchLib.EventSub.Core/Models/Predictions/Predictor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// <summary>
/// Defines a user that predicted in a prediction
/// </summary>
public class Predictor
public sealed class Predictor
{
/// <summary>
/// The ID of the user.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace TwitchLib.EventSub.Core.Models.Subscriptions
/// <summary>
/// Defines a subscription message send in chat to share a resubscription
/// </summary>
public class SubscriptionMessage
public sealed class SubscriptionMessage
{
/// <summary>
/// The text of the resubscription chat message.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// <summary>
/// Defines Emotes and their positions in a resubscription chat message
/// </summary>
public class SubscriptionMessageEmote
public sealed class SubscriptionMessageEmote
{
/// <summary>
/// The index of where the Emote starts in the text.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>a User runs a midroll commercial break, either manually or automatically via ads manager.</para>
/// </summary>
public class ChannelAdBreakBegin
public sealed class ChannelAdBreakBegin
{
/// <summary>
/// Length in seconds of the mid-roll ad break requested
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>A viewer is banned/timed out from the specified channel.</para>
/// </summary>
public class ChannelBan
public sealed class ChannelBan
{
/// <summary>
/// The user ID for the user who was banned/timed out on the specified channel.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>Sends an event notification when a user donates to the broadcaster’s charity campaign.</para>
/// </summary>
public class ChannelCharityCampaignDonate : CharityBase
public sealed class ChannelCharityCampaignDonate : CharityBase
{
/// <summary>
/// An ID that uniquely identifies the charity campaign.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>To get that information, subscribe to the Start event or call the Get Charity Campaign endpoint.</para>
/// <para>To get donation information, subscribe to the channel.charity_campaign.donate event.</para>
/// </summary>
public class ChannelCharityCampaignProgress : CharityBase
public sealed class ChannelCharityCampaignProgress : CharityBase
{
/// <summary>
/// An ID that identifies the charity campaign.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Sends a notification when the broadcaster starts a charity campaign.</para>
/// <para>It’s possible to receive this event after the Progress event.</para>
/// </summary>
public class ChannelCharityCampaignStart : CharityBase
public sealed class ChannelCharityCampaignStart : CharityBase
{
/// <summary>
/// An ID that identifies the charity campaign.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>The event data does not include information about the charity such as its name, description, and logo.</para>
/// <para>To get that information, subscribe to the Start event or call the Get Charity Campaign endpoint.</para>
/// </summary>
public class ChannelCharityCampaignStop
public sealed class ChannelCharityCampaignStop
{
/// <summary>
/// An ID that identifies the charity campaign.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/// <para>Description:</para>
/// <para>A user cheers on the specified channel.</para>
/// </summary>
public class ChannelCheer
public sealed class ChannelCheer
{
/// <summary>
/// Whether the user cheered anonymously or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>A specified channel receives a follow.</para>
/// </summary>
public class ChannelFollow
public sealed class ChannelFollow
{
/// <summary>
/// The user ID for the user now following the specified channel.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>A channel goal is created</para>
/// </summary>
public class ChannelGoalBegin : ChannelGoalBase
public sealed class ChannelGoalBegin : ChannelGoalBase
{ }
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>A channel goal ends</para>
/// </summary>
public class ChannelGoalEnd : ChannelGoalBase
public sealed class ChannelGoalEnd : ChannelGoalBase
{
/// <summary>
/// The UTC timestamp in RFC 3339 format, which indicates when the broadcaster ended the goal.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>A channel goal progress changes, by either receiving a follow/unfollow or a subscription/unsubscription </para>
/// </summary>
public class ChannelGoalProgress : ChannelGoalBase
public sealed class ChannelGoalProgress : ChannelGoalBase
{ }
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>The channel.guest_star_guest.update subscription type sends a notification when a guest moves between interaction states in an active Guest Star session.</para>
/// </summary>
public class ChannelGuestStarGuestUpdate : ChannelGuestStarBase
public sealed class ChannelGuestStarGuestUpdate : ChannelGuestStarBase
{
/// <summary>
/// The current state of the user after the update has taken place. Can be one of the following:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>The channel.guest_star_session.begin subscription type sends a notification when the host begins a new Guest Star session.</para>
/// </summary>
public class ChannelGuestStarSessionBegin : ChannelGuestStarSessionBase
public sealed class ChannelGuestStarSessionBegin : ChannelGuestStarSessionBase
{
/// <summary>
/// RFC3339 timestamp indicating the time the session began.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>The channel.guest_star_session.end subscription type sends a notification when a running Guest Star session is ended by the host, or automatically by the system.</para>
/// </summary>
public class ChannelGuestStarSessionEnd : ChannelGuestStarSessionBase
public sealed class ChannelGuestStarSessionEnd : ChannelGuestStarSessionBase
{
/// <summary>
/// RFC3339 timestamp indicating the time the session began.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>The channel.guest_star_settings.update subscription type sends a notification when the host preferences for Guest Star have been updated.</para>
/// </summary>
public class ChannelGuestStarSettingsUpdate
public sealed class ChannelGuestStarSettingsUpdate
{
/// <summary>
/// User ID of the host channel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/// <para>Description:</para>
/// <para>Moderator privileges were added to/removed from a user on a specified channel.</para>
/// </summary>
public class ChannelModerator
public sealed class ChannelModerator
{
/// <summary>
/// The user ID of the new/removed moderator.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>A custom channel points reward has been created/updated/removed for the specified channel.</para>
/// </summary>
public class ChannelPointsCustomReward
public sealed class ChannelPointsCustomReward
{
/// <summary>
/// The reward identifier.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>A viewer has redeemed a custom channel points reward on the specified channel.</para>
/// <para>A redemption of a channel points custom reward has been updated for the specified channel.</para>
/// </summary>
public class ChannelPointsCustomRewardRedemption
public sealed class ChannelPointsCustomRewardRedemption
{
/// <summary>
/// The redemption identifier.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>A poll started on a specified channel.</para>
/// </summary>
public class ChannelPollBegin : ChannelPollBase
public sealed class ChannelPollBegin : ChannelPollBase
{
/// <summary>
/// The time the poll will end.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>A poll ended on a specified channel.</para>
/// </summary>
public class ChannelPollEnd : ChannelPollBase
public sealed class ChannelPollEnd : ChannelPollBase
{
/// <summary>
/// The status of the poll. Valid values are completed, archived, and terminated.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>Users respond to a poll on a specified channel.</para>
/// </summary>
public class ChannelPollProgress : ChannelPollBase
public sealed class ChannelPollProgress : ChannelPollBase
{
/// <summary>
/// The time the poll will end.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>A Prediction started on a specified channel.</para>
/// </summary>
public class ChannelPredictionBegin : ChannelPredictionBase
public sealed class ChannelPredictionBegin : ChannelPredictionBase
{
/// <summary>
/// The time the Channel Points Prediction will automatically lock.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>A Prediction ended on a specified channel.</para>
/// </summary>
public class ChannelPredictionEnd : ChannelPredictionBase
public sealed class ChannelPredictionEnd : ChannelPredictionBase
{
/// <summary>
/// ID of the winning outcome.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>A Prediction was locked on a specified channel.</para>
/// </summary>
public class ChannelPredictionLock : ChannelPredictionBase
public sealed class ChannelPredictionLock : ChannelPredictionBase
{
/// <summary>
/// The time the Channel Points Prediction was locked.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>Users participated in a Prediction on a specified channel.</para>
/// </summary>
public class ChannelPredictionProgress : ChannelPredictionBase
public sealed class ChannelPredictionProgress : ChannelPredictionBase
{
/// <summary>
/// The time the Channel Points Prediction will automatically lock.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/// <para>Description:</para>
/// <para>A broadcaster raids another broadcaster’s channel.</para>
/// </summary>
public class ChannelRaid
public sealed class ChannelRaid
{
/// <summary>
/// The broadcaster ID that created the raid.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>Defines the Shield Mode data that you receive when the channel.shield_mode.begin event occurs.</para>
/// </summary>
public class ChannelShieldModeBegin : ShieldModeBase
public sealed class ChannelShieldModeBegin : ShieldModeBase
{
/// <summary>
/// The UTC timestamp (in RFC3339 format) of when the moderator activated Shield Mode.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>Defines the Shield Mode data that you receive when the channel.shield_mode.end event occurs.</para>
/// </summary>
public class ChannelShieldModeEnd : ShieldModeBase
public sealed class ChannelShieldModeEnd : ShieldModeBase
{
/// <summary>
/// The UTC timestamp (in RFC3339 format) of when the moderator deactivated Shield Mode.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>Defines the Shoutout data that you receive when the channel.shoutout.create event occurs.</para>
/// </summary>
public class ChannelShoutoutCreate : ShoutoutBase
public sealed class ChannelShoutoutCreate : ShoutoutBase
{
/// <summary>
/// An ID that identifies the moderator that sent the Shoutout.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
/// <para>Description:</para>
/// <para>Defines the Shoutout data that you receive when the channel.shoutout.receive event occurs.</para>
/// </summary>
public class ChannelShoutoutReceive : ShoutoutBase
public sealed class ChannelShoutoutReceive : ShoutoutBase
{
/// <summary>
/// An ID that identifies the broadcaster that received the Shoutout.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/// <para>Description:</para>
/// <para>A notification when a specified channel receives a subscriber. This does not include resubscribes.</para>
/// </summary>
public class ChannelSubscribe
public sealed class ChannelSubscribe
{
/// <summary>
/// The user ID for the user who subscribed to the specified channel.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/// <para>Description:</para>
/// <para>A notification when a subscription to the specified channel ends.</para>
/// </summary>
public class ChannelSubscriptionEnd
public sealed class ChannelSubscriptionEnd
{
/// <summary>
/// The user ID for the user whose subscription ended.
Expand Down
Loading

0 comments on commit f9c81c7

Please sign in to comment.