Skip to content

Commit

Permalink
Обновлены модели.
Browse files Browse the repository at this point in the history
  • Loading branch information
K1llMan committed Jun 27, 2021
1 parent 4821554 commit f875079
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 4 deletions.
1 change: 1 addition & 0 deletions Yandex.Music.Api/Models/Album/YAlbum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class YAlbum : YBaseModel
public bool AvailablePartially { get; set; }
public List<string> Bests { get; set; }
public List<string> Buy { get; set; }
public bool ChildContent { get; set; }
public string ContentWarning { get; set; }
public string CoverUri { get; set; }
public List<YAlbum> Duplicates { get; set; }
Expand Down
9 changes: 9 additions & 0 deletions Yandex.Music.Api/Models/Common/YPager.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace Yandex.Music.Api.Models.Common
{
public class YPager
{
public int Total { get; set; }
public int Page { get; set; }
public int PerPage { get; set; }
}
}
9 changes: 9 additions & 0 deletions Yandex.Music.Api/Models/Common/YPodcastEpisodeType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace Yandex.Music.Api.Models.Common
{
public enum YPodcastEpisodeType
{
Full,
Trailer,
Bonus
}
}
1 change: 1 addition & 0 deletions Yandex.Music.Api/Models/Playlist/YPlaylist.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public YPlaylistUidPair GetKey()
public string OgTitle { get; set; }
public string OgDescription { get; set; }
public YOwner Owner { get; set; }
public YPager Pager { get; set; }
public YPlaylistPlayCounter PlayCounter { get; set; }
public string PlaylistUuid { get; set; }
public List<YPrerolls> Prerolls { get; set; }
Expand Down
6 changes: 3 additions & 3 deletions Yandex.Music.Api/Models/Search/YSearchResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ public class YSearchResult<T>
{
#region Ñâîéñòâà

public int? Order { get; set; }
public int? PerPage { get; set; }
public int Order { get; set; }
public int PerPage { get; set; }
public List<T> Results { get; set; }
public int? Total { get; set; }
public int Total { get; set; }

#endregion
}
Expand Down
4 changes: 3 additions & 1 deletion Yandex.Music.Api/Models/Track/YTrack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ public YTrackAlbumPair GetKey()
public bool LyricsAvailable { get; set; }
public YMajor Major { get; set; }
public YTrackNormalization Normalization { get; set; }
public YTrackNormalizationR128 R128 { get; set; }
public string OgImage { get; set; }
public long? PreviewDurationMs { get; set; }
public long PreviewDurationMs { get; set; }
public YPodcastEpisodeType PodcastEpisodeType { get; set; }
public string RealId { get; set; }
public bool RememberPosition { get; set; }
public string ShortDescription { get; set; }
Expand Down
1 change: 1 addition & 0 deletions Yandex.Music.Api/Models/Track/YTrackContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public class YTrackContainer : IEquatable<YTrackContainer>
#region Ñâîéñòâà

public string Id { get; set; }
public decimal OriginalIndex { get; set; }
public bool Recent { get; set; }
public DateTime Timestamp { get; set; }
public YTrack Track { get; set; }
Expand Down
12 changes: 12 additions & 0 deletions Yandex.Music.Api/Models/Track/YTrackNormalizationR128.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace Yandex.Music.Api.Models.Track
{
public class YTrackNormalizationR128
{
#region Ñâîéñòâà

public double I { get; set; }
public double Tp { get; set; }

#endregion
}
}

0 comments on commit f875079

Please sign in to comment.