-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated missing Topics, updated interface (#120)
* Updated Communication Library, Updated interface with missing methods, added missing topics * Added events and objects for new channel-bits-badge-unlocks and low-trust-users, cleanup * Removed OnBitsReceived event * Updated Communication library to version 2.0.0
- Loading branch information
Showing
9 changed files
with
219 additions
and
152 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using TwitchLib.PubSub.Models.Responses.Messages; | ||
|
||
namespace TwitchLib.PubSub.Events | ||
{ | ||
public class OnChannelBitsBadgeUnlockArgs : EventArgs | ||
{ | ||
/// <summary> | ||
/// The subscription | ||
/// </summary> | ||
public BitsBadgeNotificationMessage BitsBadgeUnlocks; | ||
|
||
/// <summary> | ||
/// The channel ID the event came from | ||
/// </summary> | ||
public string ChannelId; | ||
} | ||
} |
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,18 @@ | ||
using System; | ||
using TwitchLib.PubSub.Models.Responses.Messages; | ||
|
||
namespace TwitchLib.PubSub.Events | ||
{ | ||
public class OnLowTrustUsersArgs : EventArgs | ||
{ | ||
/// <summary> | ||
/// The subscription | ||
/// </summary> | ||
public LowTrustUsers LowTrustUsers; | ||
|
||
/// <summary> | ||
/// The channel ID the event came from | ||
/// </summary> | ||
public string ChannelId; | ||
} | ||
} |
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
29 changes: 29 additions & 0 deletions
29
TwitchLib.PubSub/Models/Responses/Messages/BitsBadgeNotificationMessage.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,29 @@ | ||
using System; | ||
using Newtonsoft.Json; | ||
|
||
namespace TwitchLib.PubSub.Models.Responses.Messages | ||
{ | ||
public class BitsBadgeNotificationMessage : MessageData | ||
{ | ||
[JsonProperty(PropertyName = "user_id")] | ||
public string UserId { get; protected set; } | ||
|
||
[JsonProperty(PropertyName = "user_name")] | ||
public string UserName { get; protected set; } | ||
|
||
[JsonProperty(PropertyName = "channel_id")] | ||
public string ChannelId { get; protected set; } | ||
|
||
[JsonProperty(PropertyName = "channel_name")] | ||
public string ChannelName { get; protected set; } | ||
|
||
[JsonProperty(PropertyName = "badge_tier")] | ||
public int BadgeTier { get; protected set; } | ||
|
||
[JsonProperty(PropertyName = "chat_message")] | ||
public string ChatMessage { get; protected set; } | ||
|
||
[JsonProperty(PropertyName = "time")] | ||
public DateTime Time { get; protected set; } | ||
} | ||
} |
77 changes: 0 additions & 77 deletions
77
TwitchLib.PubSub/Models/Responses/Messages/ChannelBitsEvents.cs
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
TwitchLib.PubSub/Models/Responses/Messages/LowTrustUsers.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,12 @@ | ||
namespace TwitchLib.PubSub.Models.Responses.Messages | ||
{ | ||
public class LowTrustUsers : MessageData | ||
{ | ||
public string RawData { get; private set; } | ||
|
||
public LowTrustUsers(string jsonString) | ||
{ | ||
RawData = jsonString; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.