Skip to content

Commit

Permalink
[Release] Version 3.2.6
Browse files Browse the repository at this point in the history
Changelog:
- Now builds on .NET 6 instead of the deprecated .NET 5
- Added missing methods, events and attributes to the ITwitchPubSub interface
- Added the EventArgs base class to OnChannelPointsRewardRedeemedArgs
- Fixed logo in README
  • Loading branch information
Syzuna authored Nov 3, 2022
2 parents 3308c21 + b566167 commit a963251
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-buildstatus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v2
with:
dotnet-version: 5.0.x
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build TwitchLib.Api
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/preview-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v2
with:
dotnet-version: 5.0.x
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build TwitchLib.PubSub
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v2
with:
dotnet-version: 5.0.x
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build TwitchLib.PubSub
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img src="http://swiftyspiffy.com/img/twitchlib.png" style="max-height: 300px;">
<img src="https://cdn.syzuna-programs.de/images/twitchlib.png" style="max-height: 300px;">
</p>

# TwitchLib.PubSub
Expand Down
4 changes: 1 addition & 3 deletions TwitchLib.PubSub/Events/OnChannelPointsRewardRedeemedArgs.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace TwitchLib.PubSub.Events
{
public class OnChannelPointsRewardRedeemedArgs
public class OnChannelPointsRewardRedeemedArgs : EventArgs
{
/// <summary>
/// The ID of the channel that this event fired from.
Expand Down
15 changes: 15 additions & 0 deletions TwitchLib.PubSub/Interfaces/ITwitchPubSub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,20 +111,28 @@ public interface ITwitchPubSub
/// <summary>
/// Occurs when [on reward created]
///</summary>
[Obsolete("This event fires on an undocumented/retired/obsolete topic.", false)]
event EventHandler<OnCustomRewardCreatedArgs> OnCustomRewardCreated;
/// <summary>
/// Occurs when [on reward updated]
///</summary>
[Obsolete("This event fires on an undocumented/retired/obsolete topic.", false)]
event EventHandler<OnCustomRewardUpdatedArgs> OnCustomRewardUpdated;
/// <summary>
/// Occurs when [on reward deleted]
/// </summary>
[Obsolete("This event fires on an undocumented/retired/obsolete topic.", false)]
event EventHandler<OnCustomRewardDeletedArgs> OnCustomRewardDeleted;
/// <summary>
/// Occurs when [on reward redeemed]
/// </summary>
[Obsolete("This event fires on an undocumented/retired/obsolete topic.", false)]
event EventHandler<OnRewardRedeemedArgs> OnRewardRedeemed;
/// <summary>
/// Occurs when [on reward redeemed]
/// </summary>
event EventHandler<OnChannelPointsRewardRedeemedArgs> OnChannelPointsRewardRedeemed;
/// <summary>
/// Occurs when [on leaderboard subs].
/// </summary>
event EventHandler<OnLeaderboardEventArgs> OnLeaderboardSubs;
Expand Down Expand Up @@ -169,6 +177,7 @@ public interface ITwitchPubSub
/// Listens to bits events.
/// </summary>
/// <param name="channelTwitchId">The channel twitch identifier.</param>
[Obsolete("This topic is deprecated by Twitch. Please use ListenToBitsEventsV2()", false)]
void ListenToBitsEvents(string channelTwitchId);
/// <summary>
/// Listens to extension channel broadcast messages.
Expand Down Expand Up @@ -206,8 +215,14 @@ public interface ITwitchPubSub
/// Listens to rewards
/// </summary>
/// <param name="channelTwitchId">The channel twitch identifier.</param>
[Obsolete("This method listens to an undocumented/retired/obsolete topic. Consider using ListenToChannelPoints()", false)]
void ListenToRewards(string channelTwitchId);
/// <summary>
/// Listens to channel points.
/// </summary>
/// <param name="channelTwitchId">The channel twitch identifier.</param>
void ListenToChannelPoints(string channelTwitchId);
/// <summary>
/// Listens to leaderboards
/// </summary>
/// <param name="channelTwitchId">The channel twitch identifier.</param>
Expand Down
6 changes: 3 additions & 3 deletions TwitchLib.PubSub/TwitchLib.PubSub.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>TwitchLib.PubSub</PackageId>
<VersionPrefix>3.2.5</VersionPrefix>
<VersionPrefix>3.2.6</VersionPrefix>
<VersionSuffix>$(VersionSuffix)</VersionSuffix>
<Description>PubSub component of TwitchLib. This component allows you to access Twitch's PubSub event system and subscribe/unsubscribe from topics.</Description>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand All @@ -18,8 +18,8 @@
<RepositoryType>Git</RepositoryType>
<PackageTags>twitch library irc chat c# csharp api events pubsub net standard 2.0</PackageTags>
<NeutralLanguage>en-US</NeutralLanguage>
<AssemblyVersion>3.2.5</AssemblyVersion>
<FileVersion>3.2.5</FileVersion>
<AssemblyVersion>3.2.6</AssemblyVersion>
<FileVersion>3.2.6</FileVersion>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
Expand Down

0 comments on commit a963251

Please sign in to comment.