Skip to content

Commit

Permalink
refactor: Make PlaylistInformation to a class
Browse files Browse the repository at this point in the history
  • Loading branch information
angelobreuer committed Aug 15, 2023
1 parent f6a9631 commit 8e2f473
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text.Json.Nodes;
using Lavalink4NET.Tracks;

public readonly record struct PlaylistInformation(
public sealed record class PlaylistInformation(
string Name,
LavalinkTrack? SelectedTrack,
IImmutableDictionary<string, JsonNode> AdditionalInformation);
2 changes: 1 addition & 1 deletion tests/Lavalink4NET.Rest.Tests/LavalinkApiClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public async Task TestLoadPlaylistAsync()

// Assert
Assert.True(result.IsPlaylist);
Assert.Equal("Top Songs of 2022", result.Playlist.Value.Name);
Assert.Equal("Top Songs of 2022", result.Playlist.Name);
}

[Fact]
Expand Down

0 comments on commit 8e2f473

Please sign in to comment.