Skip to content

Commit 6bcc7b2

Browse files
committed
Update to .NET 8
1 parent fee7afa commit 6bcc7b2

File tree

11 files changed

+471
-482
lines changed

11 files changed

+471
-482
lines changed
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
using MediaBrowser.Model.Plugins;
22

3-
namespace Jellyfin.Plugin.ITunes.Configuration
3+
namespace Jellyfin.Plugin.ITunes.Configuration;
4+
5+
/// <summary>
6+
/// The (empty) plugin configuration.
7+
/// </summary>
8+
public class PluginConfiguration : BasePluginConfiguration
49
{
5-
/// <summary>
6-
/// The (empty) plugin configuration.
7-
/// </summary>
8-
public class PluginConfiguration : BasePluginConfiguration
9-
{
10-
}
1110
}
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
using System.Text.Json.Serialization;
2+
3+
namespace Jellyfin.Plugin.ITunes.Dtos;
4+
5+
/// <summary>
6+
/// Album result.
7+
/// </summary>
8+
public class AlbumResult
9+
{
10+
/// <summary>
11+
/// Gets or sets the wrapper type.
12+
/// </summary>
13+
[JsonPropertyName("wrapperType")]
14+
public string? WrapperType { get; set; }
15+
16+
/// <summary>
17+
/// Gets or sets the collection type.
18+
/// </summary>
19+
[JsonPropertyName("collectionType")]
20+
public string? CollectionType { get; set; }
21+
22+
/// <summary>
23+
/// Gets or sets the artist id.
24+
/// </summary>
25+
[JsonPropertyName("artistId")]
26+
public long? ArtistId { get; set; }
27+
28+
/// <summary>
29+
/// Gets or sets the collection id.
30+
/// </summary>
31+
[JsonPropertyName("collectionId")]
32+
public long? CollectionId { get; set; }
33+
34+
/// <summary>
35+
/// Gets or sets the artist name.
36+
/// </summary>
37+
[JsonPropertyName("artistName")]
38+
public string? ArtistName { get; set; }
39+
40+
/// <summary>
41+
/// Gets or sets the collection name.
42+
/// </summary>
43+
[JsonPropertyName("collectionName")]
44+
public string? CollectionName { get; set; }
45+
46+
/// <summary>
47+
/// Gets or sets the censored collection name.
48+
/// </summary>
49+
[JsonPropertyName("collectionCensoredName")]
50+
public string? CollectionCensoredName { get; set; }
51+
52+
/// <summary>
53+
/// Gets or sets the artist view URL.
54+
/// </summary>
55+
[JsonPropertyName("artistViewUrl")]
56+
public string? ArtistViewUrl { get; set; }
57+
58+
/// <summary>
59+
/// Gets or sets the collection view URL.
60+
/// </summary>
61+
[JsonPropertyName("collectionViewUrl")]
62+
63+
public string? CollectionViewUrl { get; set; }
64+
65+
/// <summary>
66+
/// Gets or sets the 60px artwork URL.
67+
/// </summary>
68+
[JsonPropertyName("artworkUrl60")]
69+
public string? ArtworkUrl60 { get; set; }
70+
71+
/// <summary>
72+
/// Gets or sets the 100px artwork URL.
73+
/// </summary>
74+
[JsonPropertyName("artworkUrl100")]
75+
public string? ArtworkUrl100 { get; set; }
76+
77+
/// <summary>
78+
/// Gets or sets the collection price.
79+
/// </summary>
80+
[JsonPropertyName("collectionPrice")]
81+
public double? CollectionPrice { get; set; }
82+
83+
/// <summary>
84+
/// Gets or sets the collection explicitness.
85+
/// </summary>
86+
[JsonPropertyName("collectionExplicitness")]
87+
public string? CollectionExplicitness { get; set; }
88+
89+
/// <summary>
90+
/// Gets or sets the track count.
91+
/// </summary>
92+
[JsonPropertyName("trackCount")]
93+
public long? TrackCount { get; set; }
94+
95+
/// <summary>
96+
/// Gets or sets the copyright.
97+
/// </summary>
98+
[JsonPropertyName("copyright")]
99+
public string? Copyright { get; set; }
100+
101+
/// <summary>
102+
/// Gets or sets the country.
103+
/// </summary>
104+
/// <value>The country.</value>
105+
[JsonPropertyName("country")]
106+
public string? Country { get; set; }
107+
108+
/// <summary>
109+
/// Gets or sets the currency.
110+
/// </summary>
111+
/// <value>The currency.</value>
112+
[JsonPropertyName("currency")]
113+
public string? Currency { get; set; }
114+
115+
/// <summary>
116+
/// Gets or sets the release date.
117+
/// </summary>
118+
/// <value>The release date.</value>
119+
[JsonPropertyName("releaseDate")]
120+
public string? ReleaseDate { get; set; }
121+
122+
/// <summary>
123+
/// Gets or sets the primary genre name.
124+
/// </summary>
125+
/// <value>The primary genre name.</value>
126+
[JsonPropertyName("primaryGenreName")]
127+
public string? PrimaryGenreName { get; set; }
128+
129+
/// <summary>
130+
/// Gets or sets the content advisory rating.
131+
/// </summary>
132+
/// <value>The content advisory rating.</value>
133+
[JsonPropertyName("contentAdvisoryRating")]
134+
public string? ContentAdvisoryRating { get; set; }
135+
136+
/// <summary>
137+
/// Gets or sets the amg artist id.
138+
/// </summary>
139+
/// <value>The amg artist id.</value>
140+
[JsonPropertyName("amgArtistId")]
141+
public long? AmgArtistId { get; set; }
142+
}
Lines changed: 52 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,65 @@
11
using System.Text.Json.Serialization;
22

3-
namespace Jellyfin.Plugin.ITunes.Dtos
3+
namespace Jellyfin.Plugin.ITunes.Dtos;
4+
5+
/// <summary>
6+
/// Artist result.
7+
/// </summary>
8+
public class ArtistResult
49
{
510
/// <summary>
6-
/// Artist result.
11+
/// Gets or sets the wrapper type.
712
/// </summary>
8-
public class ArtistResult
9-
{
10-
/// <summary>
11-
/// Gets or sets the wrapper type.
12-
/// </summary>
13-
/// <value>The wrapper type.</value>
14-
[JsonPropertyName("wrapperType")]
15-
public string? WrapperType { get; set; }
13+
/// <value>The wrapper type.</value>
14+
[JsonPropertyName("wrapperType")]
15+
public string? WrapperType { get; set; }
1616

17-
/// <summary>
18-
/// Gets or sets the artist type.
19-
/// </summary>
20-
/// <value>The artist type.</value>
21-
[JsonPropertyName("artistType")]
22-
public string? ArtistType { get; set; }
17+
/// <summary>
18+
/// Gets or sets the artist type.
19+
/// </summary>
20+
/// <value>The artist type.</value>
21+
[JsonPropertyName("artistType")]
22+
public string? ArtistType { get; set; }
2323

24-
/// <summary>
25-
/// Gets or sets the artist name.
26-
/// </summary>
27-
/// <value>The artist name.</value>
28-
[JsonPropertyName("artistName")]
29-
public string? ArtistName { get; set; }
24+
/// <summary>
25+
/// Gets or sets the artist name.
26+
/// </summary>
27+
/// <value>The artist name.</value>
28+
[JsonPropertyName("artistName")]
29+
public string? ArtistName { get; set; }
3030

31-
/// <summary>
32-
/// Gets or sets the artist link url.
33-
/// </summary>
34-
/// <value>The artist link url.</value>
35-
[JsonPropertyName("artistLinkUrl")]
36-
public string? ArtistLinkUrl { get; set; }
31+
/// <summary>
32+
/// Gets or sets the artist link url.
33+
/// </summary>
34+
/// <value>The artist link url.</value>
35+
[JsonPropertyName("artistLinkUrl")]
36+
public string? ArtistLinkUrl { get; set; }
3737

38-
/// <summary>
39-
/// Gets or sets the artist id.
40-
/// </summary>
41-
/// <value>The artist id.</value>
42-
[JsonPropertyName("artistId")]
43-
public long? ArtistId { get; set; }
38+
/// <summary>
39+
/// Gets or sets the artist id.
40+
/// </summary>
41+
/// <value>The artist id.</value>
42+
[JsonPropertyName("artistId")]
43+
public long? ArtistId { get; set; }
4444

45-
/// <summary>
46-
/// Gets or sets the primary genre name.
47-
/// </summary>
48-
/// <value>The primary genre name.</value>
49-
[JsonPropertyName("primaryGenreName")]
50-
public string? PrimaryGenreName { get; set; }
45+
/// <summary>
46+
/// Gets or sets the primary genre name.
47+
/// </summary>
48+
/// <value>The primary genre name.</value>
49+
[JsonPropertyName("primaryGenreName")]
50+
public string? PrimaryGenreName { get; set; }
5151

52-
/// <summary>
53-
/// Gets or sets the primary genre id.
54-
/// </summary>
55-
/// <value>The primary genre id.</value>
56-
[JsonPropertyName("primaryGenreId")]
57-
public long? PrimaryGenreId { get; set; }
52+
/// <summary>
53+
/// Gets or sets the primary genre id.
54+
/// </summary>
55+
/// <value>The primary genre id.</value>
56+
[JsonPropertyName("primaryGenreId")]
57+
public long? PrimaryGenreId { get; set; }
5858

59-
/// <summary>
60-
/// Gets or sets the amg artist id.
61-
/// </summary>
62-
/// <value>The amg artist id.</value>
63-
[JsonPropertyName("amgArtistId")]
64-
public long? AmgArtistId { get; set; }
65-
}
59+
/// <summary>
60+
/// Gets or sets the amg artist id.
61+
/// </summary>
62+
/// <value>The amg artist id.</value>
63+
[JsonPropertyName("amgArtistId")]
64+
public long? AmgArtistId { get; set; }
6665
}
Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
1-
using System;
1+
using System.Collections.Generic;
22
using System.Text.Json.Serialization;
33

4-
namespace Jellyfin.Plugin.ITunes.Dtos
4+
namespace Jellyfin.Plugin.ITunes.Dtos;
5+
6+
/// <summary>
7+
/// The ALbum DTO.
8+
/// </summary>
9+
public class ITunesAlbumDto
510
{
611
/// <summary>
7-
/// The ALbum DTO.
12+
/// Gets or sets the result count.
813
/// </summary>
9-
public class ITunesAlbumDto
10-
{
11-
/// <summary>
12-
/// Gets or sets the result count.
13-
/// </summary>
14-
/// <value>The result count.</value>
15-
[JsonPropertyName("resultCount")]
16-
public long ResultCount { get; set; }
14+
/// <value>The result count.</value>
15+
[JsonPropertyName("resultCount")]
16+
public long ResultCount { get; set; }
1717

18-
/// <summary>
19-
/// Gets or sets the results.
20-
/// </summary>
21-
/// <value>The results.</value>
22-
[JsonPropertyName("results")]
23-
public Result[] Results { get; set; } = Array.Empty<Result>();
24-
}
18+
/// <summary>
19+
/// Gets or sets the results.
20+
/// </summary>
21+
/// <value>The results.</value>
22+
[JsonPropertyName("results")]
23+
public IReadOnlyList<AlbumResult> Results { get; set; } = [];
2524
}
Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
1-
using System;
1+
using System.Collections.Generic;
22
using System.Text.Json.Serialization;
33

4-
namespace Jellyfin.Plugin.ITunes.Dtos
4+
namespace Jellyfin.Plugin.ITunes.Dtos;
5+
6+
/// <summary>
7+
/// The artist DTO.
8+
/// </summary>
9+
public class ITunesArtistDto
510
{
611
/// <summary>
7-
/// The artist DTO.
12+
/// Gets or sets the result count.
813
/// </summary>
9-
public class ITunesArtistDto
10-
{
11-
/// <summary>
12-
/// Gets or sets the result count.
13-
/// </summary>
14-
/// <value>The result count.</value>
15-
[JsonPropertyName("resultCount")]
16-
public long ResultCount { get; set; }
14+
/// <value>The result count.</value>
15+
[JsonPropertyName("resultCount")]
16+
public long ResultCount { get; set; }
1717

18-
/// <summary>
19-
/// Gets or sets the results.
20-
/// </summary>
21-
/// <value>The results.</value>
22-
[JsonPropertyName("results")]
23-
public ArtistResult[] Results { get; set; } = Array.Empty<ArtistResult>();
24-
}
18+
/// <summary>
19+
/// Gets or sets the results.
20+
/// </summary>
21+
/// <value>The results.</value>
22+
[JsonPropertyName("results")]
23+
public IReadOnlyList<ArtistResult> Results { get; set; } = [];
2524
}

0 commit comments

Comments
 (0)