-
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.
moved classes to models directory; optional fields no longer have def…
…ault values
- Loading branch information
1 parent
18d9e55
commit 86380c3
Showing
7 changed files
with
48 additions
and
194 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
TwitchLib.EventSub.Core/Models/ChannelSuspiciousUser/Message.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,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace TwitchLib.EventSub.Core.Models.ChannelSuspiciousUser; | ||
|
||
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; } = []; | ||
} |
25 changes: 25 additions & 0 deletions
25
TwitchLib.EventSub.Core/Models/ChannelSuspiciousUser/MessageFragment.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,25 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace TwitchLib.EventSub.Core.Models.ChannelSuspiciousUser; | ||
|
||
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 { get; set; } | ||
/// <summary> | ||
/// Optional. Metadata pertaining to the emote. | ||
/// </summary> | ||
public FragmentEmote? Emote { get; set; } | ||
} |
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
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: 0 additions & 71 deletions
71
TwitchLib.EventSub.Core/SubscriptionTypes/Channel/ChannelSuspiciousUserMessageMessage.cs
This file was deleted.
Oops, something went wrong.
55 changes: 0 additions & 55 deletions
55
...ib.EventSub.Core/SubscriptionTypes/Channel/ChannelSuspiciousUserMessageMessageFragment.cs
This file was deleted.
Oops, something went wrong.