Skip to content

Commit

Permalink
Add Spotify and SoundCloud Track to serialization context
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry08 committed Jul 13, 2024
1 parent 0f0c6f5 commit 529153a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Yosu/Services/PreferenceService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,7 @@ public partial class PreferenceService
{
[JsonSerializable(typeof(PreferenceService))]
[JsonSerializable(typeof(Video))]
[JsonSerializable(typeof(SpotifyExplode.Tracks.Track))]
[JsonSerializable(typeof(SoundCloudExplode.Tracks.Track))]

Check warning on line 50 in Yosu/Services/PreferenceService.cs

View workflow job for this annotation

GitHub Actions / Android Build

There are multiple types named 'Track'. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1031)
private partial class SerializerContext : JsonSerializerContext;
}

0 comments on commit 529153a

Please sign in to comment.