Skip to content

Commit

Permalink
Replace ids to YandexId is some internal classes to fix serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
SKProCH committed Jan 15, 2024
1 parent af38923 commit ead9bf4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions YandexMusicResolver/AudioItems/YandexMusicArtist.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
namespace YandexMusicResolver.AudioItems {
using System.Text.Json.Serialization;
using YandexMusicResolver.Ids;

namespace YandexMusicResolver.AudioItems {
/// <summary>
/// Represent a artist in Yandex Music
/// </summary>
public class YandexMusicArtist {
/// <summary>
/// Artist ID
/// </summary>
public long Id { get; set; }
[JsonConverter(typeof(YandexIdConverter))]
public YandexId Id { get; set; }

/// <summary>
/// Artist name
Expand Down
8 changes: 6 additions & 2 deletions YandexMusicResolver/Responses/MetaPlaylistTrackContainer.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
namespace YandexMusicResolver.Responses {
using System.Text.Json.Serialization;
using YandexMusicResolver.Ids;

namespace YandexMusicResolver.Responses {
internal class MetaPlaylistTrackContainer {
public long Id { get; set; }
[JsonConverter(typeof(YandexIdConverter))]
public YandexId Id { get; set; }

public MetaTrack? Track { get; set; }
}
Expand Down

0 comments on commit ead9bf4

Please sign in to comment.