-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
file scope namespace; breakout classes into files; update possible va…
…lues in comments
- Loading branch information
1 parent
8ce71fe
commit 18d9e55
Showing
7 changed files
with
269 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
TwitchLib.EventSub.Core/SubscriptionTypes/Channel/ChannelSuspiciousUserMessageMessage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel; | ||
|
||
public sealed class SuspiciousUserMessage | ||
{ | ||
/// <summary> | ||
/// The UUID that identifies the message. | ||
/// </summary> | ||
public string MessageId { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The chat message in plain text. | ||
/// </summary> | ||
public string Text { get; set; } = string.Empty; | ||
/// <summary> | ||
/// Ordered list of chat message fragments. | ||
/// </summary> | ||
public MessageFragment[] Fragments { get; set; } = []; | ||
|
||
public sealed class MessageFragment | ||
{ | ||
/// <summary> | ||
/// The type of message fragment. Possible values: -text -cheermote -emote | ||
/// </summary> | ||
public string Type { get; set; } = string.Empty; | ||
/// <summary> | ||
/// Message text in fragment. | ||
/// </summary> | ||
public string Text { get; set; } = string.Empty; | ||
/// <summary> | ||
/// Optional. Metadata pertaining to the cheermote. | ||
/// </summary> | ||
public FragmentCheermote Cheermote = new FragmentCheermote(); | ||
/// <summary> | ||
/// Optional. Metadata pertaining to the emote. | ||
/// </summary> | ||
public FragmentEmote Emote { get; set; } = new FragmentEmote(); | ||
|
||
public sealed class FragmentCheermote | ||
{ | ||
/// <summary> | ||
/// The name portion of the Cheermote string that you use in chat to cheer Bits. The full Cheermote string is the concatenation of {prefix} + {number of Bits}. | ||
/// | ||
/// For example, if the prefix is “Cheer” and you want to cheer 100 Bits, the full Cheermote string is Cheer100.When the Cheermote string is entered in chat, Twitch converts it to the image associated with the Bits tier that was cheered. | ||
/// </summary> | ||
public string Prefix { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The amount of bits cheered. | ||
/// </summary> | ||
public int Bits { get; set; } = 0; | ||
/// <summary> | ||
/// The tier level of the cheermote. | ||
/// </summary> | ||
public int Tier { get; set; } = 0; | ||
} | ||
|
||
public sealed class FragmentEmote | ||
{ | ||
/// <summary> | ||
/// An ID that uniquely identifies this emote. | ||
/// </summary> | ||
public string Id { get; set; } = string.Empty; | ||
/// <summary> | ||
/// An ID that identifies the emote set that the emote belongs to. | ||
/// </summary> | ||
public string EmoteSetId { get; set; } = string.Empty; | ||
} | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
...ib.EventSub.Core/SubscriptionTypes/Channel/ChannelSuspiciousUserMessageMessageFragment.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel; | ||
|
||
public sealed class MessageFragment | ||
{ | ||
/// <summary> | ||
/// The type of message fragment. Possible values: -text -cheermote -emote | ||
/// </summary> | ||
public string Type { get; set; } = string.Empty; | ||
/// <summary> | ||
/// Message text in fragment. | ||
/// </summary> | ||
public string Text { get; set; } = string.Empty; | ||
/// <summary> | ||
/// Optional. Metadata pertaining to the cheermote. | ||
/// </summary> | ||
public FragmentCheermote Cheermote = new FragmentCheermote(); | ||
/// <summary> | ||
/// Optional. Metadata pertaining to the emote. | ||
/// </summary> | ||
public FragmentEmote Emote { get; set; } = new FragmentEmote(); | ||
|
||
public sealed class FragmentCheermote | ||
{ | ||
/// <summary> | ||
/// The name portion of the Cheermote string that you use in chat to cheer Bits. The full Cheermote string is the concatenation of {prefix} + {number of Bits}. | ||
/// | ||
/// For example, if the prefix is “Cheer” and you want to cheer 100 Bits, the full Cheermote string is Cheer100.When the Cheermote string is entered in chat, Twitch converts it to the image associated with the Bits tier that was cheered. | ||
/// </summary> | ||
public string Prefix { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The amount of bits cheered. | ||
/// </summary> | ||
public int Bits { get; set; } = 0; | ||
/// <summary> | ||
/// The tier level of the cheermote. | ||
/// </summary> | ||
public int Tier { get; set; } = 0; | ||
} | ||
|
||
public sealed class FragmentEmote | ||
{ | ||
/// <summary> | ||
/// An ID that uniquely identifies this emote. | ||
/// </summary> | ||
public string Id { get; set; } = string.Empty; | ||
/// <summary> | ||
/// An ID that identifies the emote set that the emote belongs to. | ||
/// </summary> | ||
public string EmoteSetId { get; set; } = string.Empty; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...ub.Core/SubscriptionTypes/Channel/ChannelSuspiciousUserMessageMessageFragmentCheermote.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel; | ||
|
||
public sealed class FragmentCheermote | ||
{ | ||
/// <summary> | ||
/// The name portion of the Cheermote string that you use in chat to cheer Bits. The full Cheermote string is the concatenation of {prefix} + {number of Bits}. | ||
/// | ||
/// For example, if the prefix is “Cheer” and you want to cheer 100 Bits, the full Cheermote string is Cheer100.When the Cheermote string is entered in chat, Twitch converts it to the image associated with the Bits tier that was cheered. | ||
/// </summary> | ||
public string Prefix { get; set; } = string.Empty; | ||
/// <summary> | ||
/// The amount of bits cheered. | ||
/// </summary> | ||
public int Bits { get; set; } = 0; | ||
/// <summary> | ||
/// The tier level of the cheermote. | ||
/// </summary> | ||
public int Tier { get; set; } = 0; | ||
} |
17 changes: 17 additions & 0 deletions
17
...entSub.Core/SubscriptionTypes/Channel/ChannelSuspiciousUserMessageMessageFragmentEmote.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace TwitchLib.EventSub.Core.SubscriptionTypes.Channel; | ||
|
||
public sealed class FragmentEmote | ||
{ | ||
/// <summary> | ||
/// An ID that uniquely identifies this emote. | ||
/// </summary> | ||
public string Id { get; set; } = string.Empty; | ||
/// <summary> | ||
/// An ID that identifies the emote set that the emote belongs to. | ||
/// </summary> | ||
public string EmoteSetId { get; set; } = string.Empty; | ||
} |
Oops, something went wrong.