Добавьте файлы проекта.
This commit is contained in:
10
YandexMusic.API/Models/Library/YLibrary.cs
Normal file
10
YandexMusic.API/Models/Library/YLibrary.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace YandexMusic.API.Models.Library
|
||||
{
|
||||
public class YLibrary
|
||||
{
|
||||
public string PlaylistUuid { get; set; }
|
||||
public int Revision { get; set; }
|
||||
public List<YLibraryTrack> Tracks { get; set; }
|
||||
public string Uid { get; set; }
|
||||
}
|
||||
}
|
||||
8
YandexMusic.API/Models/Library/YLibraryAlbum.cs
Normal file
8
YandexMusic.API/Models/Library/YLibraryAlbum.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace YandexMusic.API.Models.Library
|
||||
{
|
||||
public class YLibraryAlbum
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public DateTime Timestamp { get; set; }
|
||||
}
|
||||
}
|
||||
10
YandexMusic.API/Models/Library/YLibraryPlaylists.cs
Normal file
10
YandexMusic.API/Models/Library/YLibraryPlaylists.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using YandexMusic.API.Models.Playlist;
|
||||
|
||||
namespace YandexMusic.API.Models.Library
|
||||
{
|
||||
public class YLibraryPlaylists
|
||||
{
|
||||
public YPlaylist Playlist { get; set; }
|
||||
public DateTime Timestamp { get; set; }
|
||||
}
|
||||
}
|
||||
28
YandexMusic.API/Models/Library/YLibrarySection.cs
Normal file
28
YandexMusic.API/Models/Library/YLibrarySection.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
namespace YandexMusic.API.Models.Library
|
||||
{
|
||||
/// <summary>
|
||||
/// Раздел библиотеки
|
||||
/// </summary>
|
||||
public enum YLibrarySection
|
||||
{
|
||||
/// <summary>
|
||||
/// Альбомы
|
||||
/// </summary>
|
||||
Albums,
|
||||
|
||||
/// <summary>
|
||||
/// Исполнители
|
||||
/// </summary>
|
||||
Artists,
|
||||
|
||||
/// <summary>
|
||||
/// Плейлисты
|
||||
/// </summary>
|
||||
Playlists,
|
||||
|
||||
/// <summary>
|
||||
/// Треки
|
||||
/// </summary>
|
||||
Tracks
|
||||
}
|
||||
}
|
||||
18
YandexMusic.API/Models/Library/YLibrarySectionType.cs
Normal file
18
YandexMusic.API/Models/Library/YLibrarySectionType.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace YandexMusic.API.Models.Library
|
||||
{
|
||||
/// <summary>
|
||||
/// Раздел библиотеки
|
||||
/// </summary>
|
||||
public enum YLibrarySectionType
|
||||
{
|
||||
/// <summary>
|
||||
/// Лайки
|
||||
/// </summary>
|
||||
Likes,
|
||||
|
||||
/// <summary>
|
||||
/// Дизлайки
|
||||
/// </summary>
|
||||
Dislikes
|
||||
}
|
||||
}
|
||||
9
YandexMusic.API/Models/Library/YLibraryTrack.cs
Normal file
9
YandexMusic.API/Models/Library/YLibraryTrack.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace YandexMusic.API.Models.Library
|
||||
{
|
||||
public class YLibraryTrack
|
||||
{
|
||||
public string AlbumId { get; set; }
|
||||
public string Id { get; set; }
|
||||
public DateTime Timestamp { get; set; }
|
||||
}
|
||||
}
|
||||
7
YandexMusic.API/Models/Library/YLibraryTracks.cs
Normal file
7
YandexMusic.API/Models/Library/YLibraryTracks.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace YandexMusic.API.Models.Library
|
||||
{
|
||||
public class YLibraryTracks
|
||||
{
|
||||
public YLibrary Library { get; set; }
|
||||
}
|
||||
}
|
||||
10
YandexMusic.API/Models/Library/YListenedTrack.cs
Normal file
10
YandexMusic.API/Models/Library/YListenedTrack.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using YandexMusic.API.Models.Common;
|
||||
|
||||
namespace YandexMusic.API.Models.Library
|
||||
{
|
||||
public class YListenedTrack
|
||||
{
|
||||
public YTrackId TrackId { get; set; }
|
||||
public DateTime TimeStamp { get; set; }
|
||||
}
|
||||
}
|
||||
12
YandexMusic.API/Models/Library/YRecentlyListened.cs
Normal file
12
YandexMusic.API/Models/Library/YRecentlyListened.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using YandexMusic.API.Models.Landing.Entity.Entities.Context;
|
||||
|
||||
namespace YandexMusic.API.Models.Library
|
||||
{
|
||||
public class YRecentlyListened
|
||||
{
|
||||
public string Client { get; set; }
|
||||
public YPlayContextType Context { get; set; }
|
||||
public string ContextItem { get; set; }
|
||||
public List<YListenedTrack> Tracks { get; set; }
|
||||
}
|
||||
}
|
||||
10
YandexMusic.API/Models/Library/YRecentlyListenedContext.cs
Normal file
10
YandexMusic.API/Models/Library/YRecentlyListenedContext.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using YandexMusic.API.Models.Track;
|
||||
|
||||
namespace YandexMusic.API.Models.Library
|
||||
{
|
||||
public class YRecentlyListenedContext
|
||||
{
|
||||
public List<YRecentlyListened> Contexts { get; set; }
|
||||
public List<YTrack> OtherTracks { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user