Skip to content

Commit 266e9e8

Browse files
committed
[Release] 1.6.2 version
1 parent 50a80bb commit 266e9e8

6 files changed

Lines changed: 33 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44

55
All notable changes to this project will be documented in this file.
66

7+
## [1.6.2](https://www.nuget.org/packages/KickLib/1.6.2) - [diff](https://github.com/Bukk94/KickLib/compare/v1.6.1...v1.6.2)
8+
### Added
9+
- GetLivestreamAsync overload to get livestream for currently authenticated user
10+
- Add KicksGifted event to Client
11+
### Fixed
12+
- Fixed data deserialization for NewSubscriptionEvent webhook event
13+
714
## [1.6.1](https://www.nuget.org/packages/KickLib/1.6.1) - [diff](https://github.com/Bukk94/KickLib/compare/v1.6.0...v1.6.1)
815
### Added
916
- Extended listened topics for `KickLib.Client`

KickLib.Api.Unofficial/KickLib.Api.Unofficial.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<Nullable>disable</Nullable>
77
<LangVersion>latest</LangVersion>
88
<Authors>Bukk94</Authors>
9-
<AssemblyVersion>1.6.1</AssemblyVersion>
10-
<FileVersion>1.6.1</FileVersion>
9+
<AssemblyVersion>1.6.2</AssemblyVersion>
10+
<FileVersion>1.6.2</FileVersion>
1111
</PropertyGroup>
1212

1313
<ItemGroup>

KickLib.Client/KickLib.Client.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<Nullable>enable</Nullable>
77
<LangVersion>latest</LangVersion>
88
<Authors>Bukk94</Authors>
9-
<AssemblyVersion>1.6.1</AssemblyVersion>
10-
<FileVersion>1.6.1</FileVersion>
9+
<AssemblyVersion>1.6.2</AssemblyVersion>
10+
<FileVersion>1.6.2</FileVersion>
1111
</PropertyGroup>
1212

1313
<ItemGroup>

KickLib.Tests/EventPayloadsTests.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ public void CorrectlyDeserialize_ChatMessageSentEventPayload(string data)
2222

2323
payload.Should().NotBeNull();
2424
webhookEvent.Should().NotBeNull();
25+
webhookEvent.MessageId.Should().NotBeNullOrEmpty();
26+
webhookEvent.Broadcaster.Should().NotBeNull();
27+
webhookEvent.Sender.Should().NotBeNull();
28+
webhookEvent.Content.Should().NotBeNullOrEmpty();
2529
}
2630

2731
[Fact]
@@ -89,6 +93,13 @@ public void CorrectlyDeserialize_ChannelNewSubscriptionEventPayload()
8993

9094
payload.Should().NotBeNull();
9195
webhookEvent.Should().NotBeNull();
96+
webhookEvent.Broadcaster.Should().NotBeNull();
97+
webhookEvent.Gifter.Should().NotBeNull();
98+
webhookEvent.Subscriber.Should().NotBeNull();
99+
webhookEvent.Subscriber.UserId.Should().Be(987654321);
100+
webhookEvent.Duration.Should().Be(1);
101+
webhookEvent.CreatedAt.Should().BeCloseTo(DateTimeOffset.Parse("2025-01-14T16:08:06Z"), TimeSpan.FromSeconds(1));
102+
webhookEvent.ExpiresAt.Should().BeCloseTo(DateTimeOffset.Parse("2025-03-15T16:08:06Z"), TimeSpan.FromSeconds(1));
92103
}
93104

94105
[Fact]

KickLib/KickLib.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
<PackageProjectUrl>https://github.com/Bukk94/KickLib</PackageProjectUrl>
1717
<RepositoryUrl>https://github.com/Bukk94/KickLib</RepositoryUrl>
1818
<PackageReadmeFile>README.md</PackageReadmeFile>
19-
<PackageReleaseNotes>Added replies_to field to webhooks, retry policy to BrowserClient, fixes</PackageReleaseNotes>
20-
<Version>1.6.1</Version>
21-
<AssemblyVersion>1.6.1</AssemblyVersion>
22-
<FileVersion>1.6.1</FileVersion>
19+
<PackageReleaseNotes>Livestream endpoint and fixes</PackageReleaseNotes>
20+
<Version>1.6.2</Version>
21+
<AssemblyVersion>1.6.2</AssemblyVersion>
22+
<FileVersion>1.6.2</FileVersion>
2323
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2424
</PropertyGroup>
2525

KickLib/Webhooks/Payloads/ChannelNewSubscriptionEvent.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@ namespace KickLib.Webhooks.Payloads;
77
/// </summary>
88
public class ChannelNewSubscriptionEvent : WebhookEventBase
99
{
10+
/// <summary>
11+
/// The user who subscribed to the channel (same value as Subscriber).
12+
/// </summary>
13+
[Obsolete("Use Subscriber property instead.")]
14+
public KickUser Gifter => Subscriber;
15+
1016
/// <summary>
1117
/// The user who subscribed to the channel.
1218
/// </summary>
13-
[JsonProperty(PropertyName = "subscriber")]
14-
public KickUser Gifter { get; set; } = new();
19+
public KickUser Subscriber { get; set; } = new();
1520

1621
/// <summary>
1722
/// The duration of the subscription in months.

0 commit comments

Comments
 (0)