Обнновлено до .net10
This commit is contained in:
@@ -1,41 +1,41 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using YandexMusic.API.Models.Common;
|
||||
using YandexMusic.API.Models.Common.Cover;
|
||||
|
||||
namespace YandexMusic.API.Models.Artist
|
||||
namespace YandexMusic.API.Models.Artist;
|
||||
|
||||
public class YArtist : YBaseModel
|
||||
{
|
||||
public class YArtist : YBaseModel
|
||||
{
|
||||
public YButton ActionButton { get; set; }
|
||||
public bool Available { get; set; }
|
||||
public bool Composer { get; set; }
|
||||
public List<string> Countries { get; set; }
|
||||
public YArtistCounts Counts { get; set; }
|
||||
[JsonConverter(typeof(YCoverConverter))]
|
||||
public YCover Cover { get; set; }
|
||||
public List<string> DbAliases { get; set; }
|
||||
public YButton ActionButton { get; set; }
|
||||
public bool Available { get; set; }
|
||||
public bool Composer { get; set; }
|
||||
public List<string> Countries { get; set; }
|
||||
public YArtistCounts Counts { get; set; }
|
||||
[JsonConverter(typeof(YCoverConverter))]
|
||||
public YCover Cover { get; set; }
|
||||
public List<string> DbAliases { get; set; }
|
||||
#warning Непонятная коллекция с содержимым разных типов
|
||||
public List<object> Decomposed { get; set; }
|
||||
public YDerivedColors DerivedColors { get; set; }
|
||||
public YDescription Description { get; set; }
|
||||
public YDeprecation Deprecation { get; set; }
|
||||
public List<string> Disclaimers { get; set; }
|
||||
public string EndDate { get; set; }
|
||||
public string EnWikipediaLink { get; set; }
|
||||
public List<YExtraAction> ExtraActions { get; set; }
|
||||
public List<string> Genres { get; set; }
|
||||
public string Id { get; set; }
|
||||
public string InitDate { get; set; }
|
||||
public int LikesCount { get; set; }
|
||||
public List<YLink> Links { get; set; }
|
||||
public string Name { get; set; }
|
||||
public bool NoPicturesFromSearch { get; set; }
|
||||
public string OgImage { get; set; }
|
||||
public YArtistRatings Ratings { get; set; }
|
||||
public bool TicketsAvailable { get; set; }
|
||||
public DateTime Timestamp { get; set; }
|
||||
public bool Various { get; set; }
|
||||
public string YaMoneyId { get; set; }
|
||||
public bool HasTrailer { get; set; }
|
||||
public YTrailer Trailer { get; set; }
|
||||
}
|
||||
public List<object> Decomposed { get; set; }
|
||||
public YDerivedColors DerivedColors { get; set; }
|
||||
public YDescription Description { get; set; }
|
||||
public YDeprecation Deprecation { get; set; }
|
||||
public List<string> Disclaimers { get; set; }
|
||||
public string EndDate { get; set; }
|
||||
public string EnWikipediaLink { get; set; }
|
||||
public List<YExtraAction> ExtraActions { get; set; }
|
||||
public List<string> Genres { get; set; }
|
||||
public string Id { get; set; }
|
||||
public string InitDate { get; set; }
|
||||
public int LikesCount { get; set; }
|
||||
public List<YLink> Links { get; set; }
|
||||
public string Name { get; set; }
|
||||
public bool NoPicturesFromSearch { get; set; }
|
||||
public string OgImage { get; set; }
|
||||
public YArtistRatings Ratings { get; set; }
|
||||
public bool TicketsAvailable { get; set; }
|
||||
public DateTime Timestamp { get; set; }
|
||||
public bool Various { get; set; }
|
||||
public string YaMoneyId { get; set; }
|
||||
public bool HasTrailer { get; set; }
|
||||
public YTrailer Trailer { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,36 +1,36 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using YandexMusic.API.Models.Album;
|
||||
using YandexMusic.API.Models.Common;
|
||||
using YandexMusic.API.Models.Common.Cover;
|
||||
using YandexMusic.API.Models.Playlist;
|
||||
using YandexMusic.API.Models.Track;
|
||||
|
||||
namespace YandexMusic.API.Models.Artist
|
||||
namespace YandexMusic.API.Models.Artist;
|
||||
|
||||
public class YArtistBriefInfo
|
||||
{
|
||||
public class YArtistBriefInfo
|
||||
{
|
||||
public YButton ActionButton { get; set; }
|
||||
public List<YAlbum> Albums { get; set; }
|
||||
[JsonProperty(ItemConverterType = typeof(YCoverConverter))]
|
||||
public List<YCover> AllCovers { get; set; }
|
||||
public List<YAlbum> AlsoAlbums { get; set; }
|
||||
public YArtist Artist { get; set; }
|
||||
public string BackgroundVideoUrl { get; set; }
|
||||
public YBandlinkScannerLink BandlinkScannerLink { get; set; }
|
||||
public List<YClip> Clips { get; set; }
|
||||
public List<YConcert> Concerts { get; set; }
|
||||
public YCustomWave CustomWave { get; set; }
|
||||
public List<YExtraAction> ExtraActions { get; set; }
|
||||
public bool HasPromotions { get; set; }
|
||||
public bool HasTrailer { get; set; }
|
||||
public List<string> LastReleaseIds { get; set; }
|
||||
public List<YAlbum> LastReleases { get; set; }
|
||||
public List<YPlaylistUidPair> PlaylistIds { get; set; }
|
||||
public List<YPlaylist> Playlists { get; set; }
|
||||
public List<YTrack> PopularTracks { get; set; }
|
||||
public List<YArtist> SimilarArtists { get; set; }
|
||||
public YStats Stats { get; set; }
|
||||
public List<YVideo> Videos { get; set; }
|
||||
public List<YVinyl> Vinyls { get; set; }
|
||||
public List<YLink> Links { get; set; }
|
||||
}
|
||||
public YButton ActionButton { get; set; }
|
||||
public List<YAlbum> Albums { get; set; }
|
||||
[JsonConverter(typeof(YCoverConverter))]
|
||||
public List<YCover> AllCovers { get; set; }
|
||||
public List<YAlbum> AlsoAlbums { get; set; }
|
||||
public YArtist Artist { get; set; }
|
||||
public string BackgroundVideoUrl { get; set; }
|
||||
public YBandlinkScannerLink BandlinkScannerLink { get; set; }
|
||||
public List<YClip> Clips { get; set; }
|
||||
public List<YConcert> Concerts { get; set; }
|
||||
public YCustomWave CustomWave { get; set; }
|
||||
public List<YExtraAction> ExtraActions { get; set; }
|
||||
public bool HasPromotions { get; set; }
|
||||
public bool HasTrailer { get; set; }
|
||||
public List<string> LastReleaseIds { get; set; }
|
||||
public List<YAlbum> LastReleases { get; set; }
|
||||
public List<YPlaylistUidPair> PlaylistIds { get; set; }
|
||||
public List<YPlaylist> Playlists { get; set; }
|
||||
public List<YTrack> PopularTracks { get; set; }
|
||||
public List<YArtist> SimilarArtists { get; set; }
|
||||
public YStats Stats { get; set; }
|
||||
public List<YVideo> Videos { get; set; }
|
||||
public List<YVinyl> Vinyls { get; set; }
|
||||
public List<YLink> Links { get; set; }
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
namespace YandexMusic.API.Models.Artist
|
||||
namespace YandexMusic.API.Models.Artist;
|
||||
|
||||
public class YArtistCounts
|
||||
{
|
||||
public class YArtistCounts
|
||||
{
|
||||
public int AlsoAlbums { get; set; }
|
||||
public int AlsoTracks { get; set; }
|
||||
public int DirectAlbums { get; set; }
|
||||
public int Tracks { get; set; }
|
||||
}
|
||||
public int AlsoAlbums { get; set; }
|
||||
public int AlsoTracks { get; set; }
|
||||
public int DirectAlbums { get; set; }
|
||||
public int Tracks { get; set; }
|
||||
}
|
||||
@@ -1,9 +1,8 @@
|
||||
namespace YandexMusic.API.Models.Artist
|
||||
namespace YandexMusic.API.Models.Artist;
|
||||
|
||||
public class YArtistRatings
|
||||
{
|
||||
public class YArtistRatings
|
||||
{
|
||||
public int Day { get; set; }
|
||||
public int Month { get; set; }
|
||||
public int Week { get; set; }
|
||||
}
|
||||
public int Day { get; set; }
|
||||
public int Month { get; set; }
|
||||
public int Week { get; set; }
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
namespace YandexMusic.API.Models.Artist
|
||||
namespace YandexMusic.API.Models.Artist;
|
||||
|
||||
public class YBandlinkScannerLink
|
||||
{
|
||||
public class YBandlinkScannerLink
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public string Subtitle { get; set; }
|
||||
public string Url { get; set; }
|
||||
public string ImgUrl { get; set; }
|
||||
}
|
||||
public string Title { get; set; }
|
||||
public string Subtitle { get; set; }
|
||||
public string Url { get; set; }
|
||||
public string ImgUrl { get; set; }
|
||||
}
|
||||
@@ -1,29 +1,29 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using YandexMusic.API.Models.Common;
|
||||
|
||||
namespace YandexMusic.API.Models.Artist
|
||||
namespace YandexMusic.API.Models.Artist;
|
||||
|
||||
public class YConcert
|
||||
{
|
||||
public class YConcert
|
||||
{
|
||||
public string Address { get; set; }
|
||||
public string AfishaUrl { get; set; }
|
||||
public YArtist Artist { get; set; }
|
||||
public string City { get; set; }
|
||||
public string ConcertTitle { get; set; }
|
||||
public string ContentRating { get; set; }
|
||||
public List<decimal> Coordinates { get; set; }
|
||||
public YCashback Cashback { get; set; }
|
||||
[JsonProperty("data-session-id")]
|
||||
public string DataSessionId { get; set; }
|
||||
public DateTime DateTime { get; set; }
|
||||
public string Hash { get; set; }
|
||||
public string Id { get; set; }
|
||||
public List<string> Images { get; set; }
|
||||
public string ImageUrl { get; set; }
|
||||
public string Map { get; set; }
|
||||
public string MapUrl { get; set; }
|
||||
[JsonProperty("metro-stations")]
|
||||
public List<YMetroStation> MetroStations { get; set; }
|
||||
public string Place { get; set; }
|
||||
public YPrice MinPrice { get; set; }
|
||||
}
|
||||
public string Address { get; set; }
|
||||
public string AfishaUrl { get; set; }
|
||||
public YArtist Artist { get; set; }
|
||||
public string City { get; set; }
|
||||
public string ConcertTitle { get; set; }
|
||||
public string ContentRating { get; set; }
|
||||
public List<decimal> Coordinates { get; set; }
|
||||
public YCashback Cashback { get; set; }
|
||||
[JsonPropertyName("data-session-id")]
|
||||
public string DataSessionId { get; set; }
|
||||
public DateTime DateTime { get; set; }
|
||||
public string Hash { get; set; }
|
||||
public string Id { get; set; }
|
||||
public List<string> Images { get; set; }
|
||||
public string ImageUrl { get; set; }
|
||||
public string Map { get; set; }
|
||||
public string MapUrl { get; set; }
|
||||
[JsonPropertyName("metro-stations")]
|
||||
public List<YMetroStation> MetroStations { get; set; }
|
||||
public string Place { get; set; }
|
||||
public YPrice MinPrice { get; set; }
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
namespace YandexMusic.API.Models.Artist
|
||||
namespace YandexMusic.API.Models.Artist;
|
||||
|
||||
public class YDeprecation
|
||||
{
|
||||
public class YDeprecation
|
||||
{
|
||||
public string TargetArtistId { get; set; }
|
||||
}
|
||||
public string TargetArtistId { get; set; }
|
||||
}
|
||||
@@ -1,9 +1,10 @@
|
||||
namespace YandexMusic.API.Models.Artist
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace YandexMusic.API.Models.Artist;
|
||||
|
||||
public class YMetroStation
|
||||
{
|
||||
public class YMetroStation
|
||||
{
|
||||
[JsonProperty("line-color")]
|
||||
public string LineColor { get; set; }
|
||||
public string Title { get; set; }
|
||||
}
|
||||
[JsonPropertyName("line-color")]
|
||||
public string LineColor { get; set; }
|
||||
public string Title { get; set; }
|
||||
}
|
||||
@@ -1,12 +1,11 @@
|
||||
using YandexMusic.API.Models.Common;
|
||||
using YandexMusic.API.Models.Track;
|
||||
|
||||
namespace YandexMusic.API.Models.Artist
|
||||
{
|
||||
public class YTracksPage
|
||||
{
|
||||
public YPager Pager { get; set; }
|
||||
namespace YandexMusic.API.Models.Artist;
|
||||
|
||||
public List<YTrack> Tracks { get; set; }
|
||||
}
|
||||
public class YTracksPage
|
||||
{
|
||||
public YPager Pager { get; set; }
|
||||
|
||||
public List<YTrack> Tracks { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user