Skip to content

Commit

Permalink
Обновлены модели и документация.
Browse files Browse the repository at this point in the history
  • Loading branch information
K1llMan committed Dec 27, 2020
1 parent a6ce09b commit 6571c64
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Yandex.Music.Api/API/YPlaylistAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,13 @@ public YResponse<YPlaylist> Podcasts(AuthStorage storage)
}

/// <summary>
/// Большая перемотка
/// Мой 2020
/// </summary>
/// <param name="storage">Хранилище</param>
/// <returns></returns>
public async Task<YResponse<YPlaylist>> RewindAsync(AuthStorage storage)
{
return await GetPersonalPlaylist(storage, YGeneratedPlaylistType.Rewind10);
return await GetPersonalPlaylist(storage, YGeneratedPlaylistType.Rewind20);
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Yandex.Music.Api/Models/Playlist/YGeneratedPlaylistType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ public enum YGeneratedPlaylistType
/// <summary>
/// Большая перемотка
/// </summary>
Rewind10
Rewind20,
}
}
1 change: 1 addition & 0 deletions Yandex.Music.Api/Models/Track/YTrack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public YTrackAlbumPair GetKey()
public long? PreviewDurationMs { get; set; }
public string RealId { get; set; }
public bool RememberPosition { get; set; }
public string ShortDescription { get; set; }
public string StorageDir { get; set; }
public YTrack Substituted { get; set; }
public string Title { get; set; }
Expand Down
4 changes: 2 additions & 2 deletions docs/source/api/branches/playlist.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ Playlist API
public async Task<YResponse<YPlaylist>> RewindAsync(AuthStorage storage)
Получение плейлиста Большая перемотка в асинхронном режиме.
Получение плейлиста Мой 2020 в асинхронном режиме.

.. code-block:: csharp
public YResponse<YPlaylist> Rewind(AuthStorage storage)
Получение плейлиста Большая перемотка.
Получение плейлиста Мой 2020.

.. code-block:: csharp
Expand Down
2 changes: 1 addition & 1 deletion docs/source/client/root.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ YandexMusicClient
public YPlaylist GetRewind()
Получение плейлиста Большая перемотка.
Получение плейлиста Мой 2020.

.. code-block:: csharp
Expand Down

0 comments on commit 6571c64

Please sign in to comment.