Skip to content

Commit

Permalink
Update to .NET 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadowghost committed Sep 4, 2024
1 parent fee7afa commit 6bcc7b2
Show file tree
Hide file tree
Showing 11 changed files with 471 additions and 482 deletions.
13 changes: 6 additions & 7 deletions Jellyfin.Plugin.ITunes/Configuration/PluginConfiguration.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
using MediaBrowser.Model.Plugins;

namespace Jellyfin.Plugin.ITunes.Configuration
namespace Jellyfin.Plugin.ITunes.Configuration;

/// <summary>
/// The (empty) plugin configuration.
/// </summary>
public class PluginConfiguration : BasePluginConfiguration
{
/// <summary>
/// The (empty) plugin configuration.
/// </summary>
public class PluginConfiguration : BasePluginConfiguration
{
}
}
142 changes: 142 additions & 0 deletions Jellyfin.Plugin.ITunes/Dtos/AlbumResult.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
using System.Text.Json.Serialization;

namespace Jellyfin.Plugin.ITunes.Dtos;

/// <summary>
/// Album result.
/// </summary>
public class AlbumResult
{
/// <summary>
/// Gets or sets the wrapper type.
/// </summary>
[JsonPropertyName("wrapperType")]
public string? WrapperType { get; set; }

/// <summary>
/// Gets or sets the collection type.
/// </summary>
[JsonPropertyName("collectionType")]
public string? CollectionType { get; set; }

/// <summary>
/// Gets or sets the artist id.
/// </summary>
[JsonPropertyName("artistId")]
public long? ArtistId { get; set; }

/// <summary>
/// Gets or sets the collection id.
/// </summary>
[JsonPropertyName("collectionId")]
public long? CollectionId { get; set; }

/// <summary>
/// Gets or sets the artist name.
/// </summary>
[JsonPropertyName("artistName")]
public string? ArtistName { get; set; }

/// <summary>
/// Gets or sets the collection name.
/// </summary>
[JsonPropertyName("collectionName")]
public string? CollectionName { get; set; }

/// <summary>
/// Gets or sets the censored collection name.
/// </summary>
[JsonPropertyName("collectionCensoredName")]
public string? CollectionCensoredName { get; set; }

/// <summary>
/// Gets or sets the artist view URL.
/// </summary>
[JsonPropertyName("artistViewUrl")]
public string? ArtistViewUrl { get; set; }

/// <summary>
/// Gets or sets the collection view URL.
/// </summary>
[JsonPropertyName("collectionViewUrl")]

public string? CollectionViewUrl { get; set; }

/// <summary>
/// Gets or sets the 60px artwork URL.
/// </summary>
[JsonPropertyName("artworkUrl60")]
public string? ArtworkUrl60 { get; set; }

/// <summary>
/// Gets or sets the 100px artwork URL.
/// </summary>
[JsonPropertyName("artworkUrl100")]
public string? ArtworkUrl100 { get; set; }

/// <summary>
/// Gets or sets the collection price.
/// </summary>
[JsonPropertyName("collectionPrice")]
public double? CollectionPrice { get; set; }

/// <summary>
/// Gets or sets the collection explicitness.
/// </summary>
[JsonPropertyName("collectionExplicitness")]
public string? CollectionExplicitness { get; set; }

/// <summary>
/// Gets or sets the track count.
/// </summary>
[JsonPropertyName("trackCount")]
public long? TrackCount { get; set; }

/// <summary>
/// Gets or sets the copyright.
/// </summary>
[JsonPropertyName("copyright")]
public string? Copyright { get; set; }

/// <summary>
/// Gets or sets the country.
/// </summary>
/// <value>The country.</value>
[JsonPropertyName("country")]
public string? Country { get; set; }

/// <summary>
/// Gets or sets the currency.
/// </summary>
/// <value>The currency.</value>
[JsonPropertyName("currency")]
public string? Currency { get; set; }

/// <summary>
/// Gets or sets the release date.
/// </summary>
/// <value>The release date.</value>
[JsonPropertyName("releaseDate")]
public string? ReleaseDate { get; set; }

/// <summary>
/// Gets or sets the primary genre name.
/// </summary>
/// <value>The primary genre name.</value>
[JsonPropertyName("primaryGenreName")]
public string? PrimaryGenreName { get; set; }

/// <summary>
/// Gets or sets the content advisory rating.
/// </summary>
/// <value>The content advisory rating.</value>
[JsonPropertyName("contentAdvisoryRating")]
public string? ContentAdvisoryRating { get; set; }

/// <summary>
/// Gets or sets the amg artist id.
/// </summary>
/// <value>The amg artist id.</value>
[JsonPropertyName("amgArtistId")]
public long? AmgArtistId { get; set; }
}
105 changes: 52 additions & 53 deletions Jellyfin.Plugin.ITunes/Dtos/ArtistResult.cs
Original file line number Diff line number Diff line change
@@ -1,66 +1,65 @@
using System.Text.Json.Serialization;

namespace Jellyfin.Plugin.ITunes.Dtos
namespace Jellyfin.Plugin.ITunes.Dtos;

/// <summary>
/// Artist result.
/// </summary>
public class ArtistResult
{
/// <summary>
/// Artist result.
/// Gets or sets the wrapper type.
/// </summary>
public class ArtistResult
{
/// <summary>
/// Gets or sets the wrapper type.
/// </summary>
/// <value>The wrapper type.</value>
[JsonPropertyName("wrapperType")]
public string? WrapperType { get; set; }
/// <value>The wrapper type.</value>
[JsonPropertyName("wrapperType")]
public string? WrapperType { get; set; }

/// <summary>
/// Gets or sets the artist type.
/// </summary>
/// <value>The artist type.</value>
[JsonPropertyName("artistType")]
public string? ArtistType { get; set; }
/// <summary>
/// Gets or sets the artist type.
/// </summary>
/// <value>The artist type.</value>
[JsonPropertyName("artistType")]
public string? ArtistType { get; set; }

/// <summary>
/// Gets or sets the artist name.
/// </summary>
/// <value>The artist name.</value>
[JsonPropertyName("artistName")]
public string? ArtistName { get; set; }
/// <summary>
/// Gets or sets the artist name.
/// </summary>
/// <value>The artist name.</value>
[JsonPropertyName("artistName")]
public string? ArtistName { get; set; }

/// <summary>
/// Gets or sets the artist link url.
/// </summary>
/// <value>The artist link url.</value>
[JsonPropertyName("artistLinkUrl")]
public string? ArtistLinkUrl { get; set; }
/// <summary>
/// Gets or sets the artist link url.
/// </summary>
/// <value>The artist link url.</value>
[JsonPropertyName("artistLinkUrl")]
public string? ArtistLinkUrl { get; set; }

/// <summary>
/// Gets or sets the artist id.
/// </summary>
/// <value>The artist id.</value>
[JsonPropertyName("artistId")]
public long? ArtistId { get; set; }
/// <summary>
/// Gets or sets the artist id.
/// </summary>
/// <value>The artist id.</value>
[JsonPropertyName("artistId")]
public long? ArtistId { get; set; }

/// <summary>
/// Gets or sets the primary genre name.
/// </summary>
/// <value>The primary genre name.</value>
[JsonPropertyName("primaryGenreName")]
public string? PrimaryGenreName { get; set; }
/// <summary>
/// Gets or sets the primary genre name.
/// </summary>
/// <value>The primary genre name.</value>
[JsonPropertyName("primaryGenreName")]
public string? PrimaryGenreName { get; set; }

/// <summary>
/// Gets or sets the primary genre id.
/// </summary>
/// <value>The primary genre id.</value>
[JsonPropertyName("primaryGenreId")]
public long? PrimaryGenreId { get; set; }
/// <summary>
/// Gets or sets the primary genre id.
/// </summary>
/// <value>The primary genre id.</value>
[JsonPropertyName("primaryGenreId")]
public long? PrimaryGenreId { get; set; }

/// <summary>
/// Gets or sets the amg artist id.
/// </summary>
/// <value>The amg artist id.</value>
[JsonPropertyName("amgArtistId")]
public long? AmgArtistId { get; set; }
}
/// <summary>
/// Gets or sets the amg artist id.
/// </summary>
/// <value>The amg artist id.</value>
[JsonPropertyName("amgArtistId")]
public long? AmgArtistId { get; set; }
}
35 changes: 17 additions & 18 deletions Jellyfin.Plugin.ITunes/Dtos/ITunesAlbumDto.cs
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace Jellyfin.Plugin.ITunes.Dtos
namespace Jellyfin.Plugin.ITunes.Dtos;

/// <summary>
/// The ALbum DTO.
/// </summary>
public class ITunesAlbumDto
{
/// <summary>
/// The ALbum DTO.
/// Gets or sets the result count.
/// </summary>
public class ITunesAlbumDto
{
/// <summary>
/// Gets or sets the result count.
/// </summary>
/// <value>The result count.</value>
[JsonPropertyName("resultCount")]
public long ResultCount { get; set; }
/// <value>The result count.</value>
[JsonPropertyName("resultCount")]
public long ResultCount { get; set; }

/// <summary>
/// Gets or sets the results.
/// </summary>
/// <value>The results.</value>
[JsonPropertyName("results")]
public Result[] Results { get; set; } = Array.Empty<Result>();
}
/// <summary>
/// Gets or sets the results.
/// </summary>
/// <value>The results.</value>
[JsonPropertyName("results")]
public IReadOnlyList<AlbumResult> Results { get; set; } = [];
}
35 changes: 17 additions & 18 deletions Jellyfin.Plugin.ITunes/Dtos/ITunesArtistDto.cs
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace Jellyfin.Plugin.ITunes.Dtos
namespace Jellyfin.Plugin.ITunes.Dtos;

/// <summary>
/// The artist DTO.
/// </summary>
public class ITunesArtistDto
{
/// <summary>
/// The artist DTO.
/// Gets or sets the result count.
/// </summary>
public class ITunesArtistDto
{
/// <summary>
/// Gets or sets the result count.
/// </summary>
/// <value>The result count.</value>
[JsonPropertyName("resultCount")]
public long ResultCount { get; set; }
/// <value>The result count.</value>
[JsonPropertyName("resultCount")]
public long ResultCount { get; set; }

/// <summary>
/// Gets or sets the results.
/// </summary>
/// <value>The results.</value>
[JsonPropertyName("results")]
public ArtistResult[] Results { get; set; } = Array.Empty<ArtistResult>();
}
/// <summary>
/// Gets or sets the results.
/// </summary>
/// <value>The results.</value>
[JsonPropertyName("results")]
public IReadOnlyList<ArtistResult> Results { get; set; } = [];
}
Loading

0 comments on commit 6bcc7b2

Please sign in to comment.