Skip to content

Commit b0f687c

Browse files
author
Johnny Dellinger @PC
committed
Rearranged models
1 parent d36a3f3 commit b0f687c

16 files changed

Lines changed: 118 additions & 21 deletions

‎SpotifyAPI/Web/Models/Category.cs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ public class Category : BasicModel
88
{
99
[JsonProperty("href")]
1010
public String Href { get; set; }
11+
1112
[JsonProperty("icons")]
1213
public List<Image> Icons { get; set; }
14+
1315
[JsonProperty("id")]
1416
public String Id { get; set; }
17+
1518
[JsonProperty("name")]
1619
public String Name { get; set; }
1720
}
18-
}
21+
}

‎SpotifyAPI/Web/Models/CategoryList.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ public class CategoryList : BasicModel
77
[JsonProperty("categories")]
88
public Paging<Category> Categories { get; set; }
99
}
10-
}
10+
}

‎SpotifyAPI/Web/Models/CategoryPlaylist.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ public class CategoryPlaylist : BasicModel
77
[JsonProperty("playlists")]
88
public Paging<SimplePlaylist> Playlists { get; set; }
99
}
10-
}
10+
}

‎SpotifyAPI/Web/Models/FeaturedPlaylists.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ public class FeaturedPlaylists : BasicModel
77
{
88
[JsonProperty("message")]
99
public String Message { get; set; }
10+
1011
[JsonProperty("playlists")]
1112
public Paging<SimplePlaylist> Playlists { get; set; }
1213
}
13-
}
14+
}

‎SpotifyAPI/Web/Models/FullAlbum.cs‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,37 +8,53 @@ public class FullAlbum : BasicModel
88
{
99
[JsonProperty("album_type")]
1010
public String AlbumType { get; set; }
11+
1112
[JsonProperty("artists")]
1213
public List<SimpleArtist> Artists { get; set; }
14+
1315
[JsonProperty("available_markets")]
1416
public List<String> AvailableMarkets { get; set; }
17+
1518
[JsonProperty("copyrights")]
1619
public List<Copyright> Copyrights { get; set; }
20+
1721
[JsonProperty("external_ids")]
1822
public Dictionary<String, String> ExternalIds { get; set; }
23+
1924
[JsonProperty("external_urls")]
2025
public Dictionary<String, String> ExternalUrls { get; set; }
26+
2127
[JsonProperty("genres")]
2228
public List<String> Genres { get; set; }
29+
2330
[JsonProperty("href")]
2431
public String Href { get; set; }
32+
2533
[JsonProperty("id")]
2634
public String Id { get; set; }
35+
2736
[JsonProperty("images")]
2837
public List<Image> Images { get; set; }
38+
2939
[JsonProperty("name")]
3040
public String Name { get; set; }
41+
3142
[JsonProperty("popularity")]
3243
public int Popularity { get; set; }
44+
3345
[JsonProperty("release_date")]
3446
public String ReleaseDate { get; set; }
47+
3548
[JsonProperty("release_date_precision")]
3649
public String ReleaseDatePrecision { get; set; }
50+
3751
[JsonProperty("tracks")]
3852
public Paging<SimpleTrack> Tracks { get; set; }
53+
3954
[JsonProperty("type")]
4055
public String Type { get; set; }
56+
4157
[JsonProperty("uri")]
4258
public String Uri { get; set; }
4359
}
44-
}
60+
}

‎SpotifyAPI/Web/Models/FullArtist.cs‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,32 @@ public class FullArtist : BasicModel
88
{
99
[JsonProperty("external_urls")]
1010
public Dictionary<String, String> ExternalUrls { get; set; }
11+
1112
[JsonProperty("followers")]
1213
public Followers Followers { get; set; }
14+
1315
[JsonProperty("genres")]
1416
public List<String> Genres { get; set; }
17+
1518
[JsonProperty("href")]
1619
public String Href { get; set; }
20+
1721
[JsonProperty("id")]
1822
public String Id { get; set; }
23+
1924
[JsonProperty("images")]
2025
public List<Image> Images { get; set; }
26+
2127
[JsonProperty("name")]
2228
public String Name { get; set; }
29+
2330
[JsonProperty("popularity")]
2431
public int Popularity { get; set; }
32+
2533
[JsonProperty("type")]
2634
public String Type { get; set; }
35+
2736
[JsonProperty("uri")]
2837
public String Uri { get; set; }
2938
}
30-
}
39+
}

‎SpotifyAPI/Web/Models/FullPlaylist.cs‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,41 @@ public class FullPlaylist : BasicModel
88
{
99
[JsonProperty("collaborative")]
1010
public Boolean Collaborative { get; set; }
11+
1112
[JsonProperty("description")]
1213
public String Description { get; set; }
14+
1315
[JsonProperty("external_urls")]
1416
public Dictionary<string, string> ExternalUrls { get; set; }
17+
1518
[JsonProperty("followers")]
1619
public Followers Followers { get; set; }
20+
1721
[JsonProperty("href")]
1822
public String Href { get; set; }
23+
1924
[JsonProperty("id")]
2025
public String Id { get; set; }
26+
2127
[JsonProperty("images")]
2228
public List<Image> Images { get; set; }
29+
2330
[JsonProperty("name")]
2431
public String Name { get; set; }
32+
2533
[JsonProperty("owner")]
2634
public PublicProfile Owner { get; set; }
35+
2736
[JsonProperty("public")]
2837
public Boolean Public { get; set; }
38+
2939
[JsonProperty("tracks")]
3040
public Paging<PlaylistTrack> Tracks { get; set; }
41+
3142
[JsonProperty("type")]
3243
public String Type { get; set; }
44+
3345
[JsonProperty("uri")]
3446
public String Uri { get; set; }
3547
}
36-
}
48+
}

‎SpotifyAPI/Web/Models/NewAlbumReleases.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ public class NewAlbumReleases : BasicModel
77
[JsonProperty("albums")]
88
public Paging<SimpleAlbum> Albums { get; set; }
99
}
10-
}
10+
}

‎SpotifyAPI/Web/Models/Paging.cs‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,23 @@ public class Paging<T> : BasicModel
88
{
99
[JsonProperty("href")]
1010
public String Href { get; set; }
11+
1112
[JsonProperty("items")]
1213
public List<T> Items { get; set; }
14+
1315
[JsonProperty("limit")]
1416
public int Limit { get; set; }
17+
1518
[JsonProperty("next")]
1619
public String Next { get; set; }
20+
1721
[JsonProperty("offset")]
1822
public int Offset { get; set; }
23+
1924
[JsonProperty("previous")]
2025
public String Previous { get; set; }
26+
2127
[JsonProperty("total")]
2228
public int Total { get; set; }
2329
}
24-
}
30+
}

‎SpotifyAPI/Web/Models/PrivateProfile.cs‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,38 @@ public class PrivateProfile : BasicModel
88
{
99
[JsonProperty("birthdate")]
1010
public String Birthdate { get; set; }
11+
1112
[JsonProperty("country")]
1213
public String Country { get; set; }
14+
1315
[JsonProperty("display_name")]
1416
public String DisplayName { get; set; }
17+
1518
[JsonProperty("email")]
1619
public String Email { get; set; }
20+
1721
[JsonProperty("external_urls")]
1822
public Dictionary<string, string> ExternalUrls { get; set; }
23+
1924
[JsonProperty("followers")]
2025
public Followers Followers { get; set; }
26+
2127
[JsonProperty("href")]
2228
public String Href { get; set; }
29+
2330
[JsonProperty("id")]
2431
public String Id { get; set; }
32+
2533
[JsonProperty("images")]
2634
public List<Image> Images { get; set; }
35+
2736
[JsonProperty("product")]
2837
public String Product { get; set; }
38+
2939
[JsonProperty("type")]
3040
public String Type { get; set; }
41+
3142
[JsonProperty("uri")]
3243
public String Uri { get; set; }
3344
}
34-
}
45+
}

0 commit comments

Comments
 (0)