Skip to content

Commit e4631fd

Browse files
AoshiWAoshiW
and
AoshiW
authored
code cleanup and fixing comments (#41)
Co-authored-by: AoshiW <ondru@LAPTOP-7K2AEST8>
1 parent 04b47b8 commit e4631fd

17 files changed

+27
-60
lines changed

TwitchLib.EventSub.Core/Models/ChannelSuspiciousUser/ChannelSuspiciousUserBase.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
4-
5-
namespace TwitchLib.EventSub.Core.Models.ChannelSuspiciousUser;
1+
namespace TwitchLib.EventSub.Core.Models.ChannelSuspiciousUser;
62

73
/// <summary>
84
/// Channel suspicious user base class.

TwitchLib.EventSub.Core/Models/ChannelSuspiciousUser/Message.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
4-
5-
namespace TwitchLib.EventSub.Core.Models.ChannelSuspiciousUser;
1+
namespace TwitchLib.EventSub.Core.Models.ChannelSuspiciousUser;
62

73
public sealed class SuspiciousUserMessage
84
{

TwitchLib.EventSub.Core/Models/ChannelSuspiciousUser/MessageFragment.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
4-
5-
namespace TwitchLib.EventSub.Core.Models.ChannelSuspiciousUser;
1+
namespace TwitchLib.EventSub.Core.Models.ChannelSuspiciousUser;
62

73
public sealed class MessageFragment
84
{
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
4-
5-
namespace TwitchLib.EventSub.Core.Models.ChannelSuspiciousUser;
1+
namespace TwitchLib.EventSub.Core.Models.ChannelSuspiciousUser;
62

73
public sealed class FragmentCheermote
84
{
@@ -15,9 +11,9 @@ public sealed class FragmentCheermote
1511
/// <summary>
1612
/// The amount of bits cheered.
1713
/// </summary>
18-
public int Bits { get; set; } = 0;
14+
public int Bits { get; set; }
1915
/// <summary>
2016
/// The tier level of the cheermote.
2117
/// </summary>
22-
public int Tier { get; set; } = 0;
18+
public int Tier { get; set; }
2319
}

TwitchLib.EventSub.Core/Models/ChannelSuspiciousUser/MessageFragmentEmote.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
4-
5-
namespace TwitchLib.EventSub.Core.Models.ChannelSuspiciousUser;
1+
namespace TwitchLib.EventSub.Core.Models.ChannelSuspiciousUser;
62

73
public sealed class FragmentEmote
84
{

TwitchLib.EventSub.Core/Models/Chat/ChatPayItForward.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ namespace TwitchLib.EventSub.Core.Models.Chat;
77
/// </summary>
88
public sealed class ChatPayItForward
99
{
10+
// RecipientUser**** isn't in docs https://github.com/TwitchLib/TwitchLib.EventSub.Core/pull/20
11+
1012
/// <summary>
1113
/// Optional. The user ID of the user who received the subscription. Null if not available at the time of event trigger.
1214
/// </summary>

TwitchLib.EventSub.Core/Models/Chat/ChatRaid.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System;
2-
3-
namespace TwitchLib.EventSub.Core.Models.Chat;
1+
namespace TwitchLib.EventSub.Core.Models.Chat;
42

53
/// <summary>
64
/// Information about the raid event. Null if notice_type is not raid.

TwitchLib.EventSub.Core/Models/GuestStar/ChannelGuestStarSessionBase.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System;
2-
31
namespace TwitchLib.EventSub.Core.Models.GuestStar;
42

53
public abstract class ChannelGuestStarSessionBase

TwitchLib.EventSub.Core/Models/Polls/ChannelPollBase.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ public class ChannelPollBase
3232
/// </summary>
3333
public PollChoice[] Choices { get; set; } = Array.Empty<PollChoice>();
3434
/// <summary>
35+
/// Not supported.
3536
/// The Bits voting settings for the poll.
3637
/// </summary>
38+
[Obsolete("Removed 2022‑09‑01")]
3739
public PollVotingSettings BitsVoting { get; set; } = new();
3840
/// <summary>
3941
/// The Channel Points voting settings for the poll.

TwitchLib.EventSub.Core/Models/Polls/PollChoice.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace TwitchLib.EventSub.Core.Models.Polls;
1+
using System;
2+
3+
namespace TwitchLib.EventSub.Core.Models.Polls;
24

35
/// <summary>
46
/// Defines a poll choice
@@ -14,8 +16,10 @@ public sealed class PollChoice
1416
/// </summary>
1517
public string Title { get; set; } = string.Empty;
1618
/// <summary>
19+
/// Not used; will be set to 0.
1720
/// Number of votes received via Bits.
1821
/// </summary>
22+
[Obsolete("Removed 2022‑09‑01")]
1923
public int? BitsVotes { get; set; }
2024
/// <summary>
2125
/// Number of votes received via Channel Points.

TwitchLib.EventSub.Core/SubscriptionTypes/Channel/ChannelSharedChatSessionBegin.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System;
2-
using TwitchLib.EventSub.Core.Models.GuestStar;
31
using TwitchLib.EventSub.Core.Models.SharedChat;
42

53
namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel;

TwitchLib.EventSub.Core/SubscriptionTypes/Channel/ChannelSharedChatSessionEnd.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System;
2-
using TwitchLib.EventSub.Core.Models.GuestStar;
31
using TwitchLib.EventSub.Core.Models.SharedChat;
42

53
namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel;

TwitchLib.EventSub.Core/SubscriptionTypes/Channel/ChannelSharedChatSessionUpdate.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System;
2-
using TwitchLib.EventSub.Core.Models.GuestStar;
31
using TwitchLib.EventSub.Core.Models.SharedChat;
42

53
namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel;

TwitchLib.EventSub.Core/SubscriptionTypes/Channel/ChannelSuspiciousUserMessage.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Diagnostics;
4-
using System.Text;
5-
using TwitchLib.EventSub.Core.Models.ChannelSuspiciousUser;
1+
using TwitchLib.EventSub.Core.Models.ChannelSuspiciousUser;
62

73
namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel;
84

TwitchLib.EventSub.Core/SubscriptionTypes/Channel/ChannelSuspiciousUserUpdate.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
4-
using TwitchLib.EventSub.Core.Models.ChannelSuspiciousUser;
1+
using TwitchLib.EventSub.Core.Models.ChannelSuspiciousUser;
52

63
namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel;
74

TwitchLib.EventSub.Core/SubscriptionTypes/Channel/ChannelUnbanRequestResolve.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
4-
5-
namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
1+
namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel
62
{
73
/// <summary>
84
/// Channel Unban Request Resolve subscription type model

TwitchLib.EventSub.Core/SubscriptionTypes/Channel/ChannelVip.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,27 @@
88
public sealed class ChannelVip
99
{
1010
/// <summary>
11-
/// The user ID of the new/removed moderator.
11+
/// The ID of the user who was added/removed as a VIP.
1212
/// </summary>
1313
public string UserId { get; set; } = string.Empty;
1414
/// <summary>
15-
/// The display name of the new/removed moderator.
15+
/// The display name of the user who was added/removed as a VIP.
1616
/// </summary>
1717
public string UserName { get; set; } = string.Empty;
1818
/// <summary>
19-
/// The user login of the new/removed moderator.
19+
/// The login of the user who was added/removed as a VIP.
2020
/// </summary>
2121
public string UserLogin { get; set; } = string.Empty;
2222
/// <summary>
23-
/// The requested broadcaster ID.
23+
/// The ID of the broadcaster.
2424
/// </summary>
2525
public string BroadcasterUserId { get; set; } = string.Empty;
2626
/// <summary>
27-
/// The requested broadcaster display name.
27+
/// The login of the broadcaster.
2828
/// </summary>
2929
public string BroadcasterUserName { get; set; } = string.Empty;
3030
/// <summary>
31-
/// The requested broadcaster login.
31+
/// The display name of the broadcaster.
3232
/// </summary>
3333
public string BroadcasterUserLogin { get; set; } = string.Empty;
34-
}
34+
}

0 commit comments

Comments
 (0)