Skip to content

Commit

Permalink
Добавлен метод для плейлиста Большая перемотка в клиент, обновлена до…
Browse files Browse the repository at this point in the history
…кументация.
  • Loading branch information
K1llMan committed Oct 24, 2020
1 parent 98fdeb2 commit 64fcfa8
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 4 deletions.
17 changes: 13 additions & 4 deletions Yandex.Music.Client.Tests/Tests/PlaylistTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,15 @@ public void Podcasts_ValidData_True()

[Fact]
[Order(8)]
public void Rewind_ValidData_True()
{
YPlaylist response = Fixture.Client.GetRewind();

response.Should().NotBeNull();
}

[Fact]
[Order(9)]
public void Create_ValidData_True()
{
Fixture.CreatedPlaylist = Fixture.Client.CreatePlaylist("Test Playlist");
Expand All @@ -111,7 +120,7 @@ public void Create_ValidData_True()
}

[Fact]
[Order(9)]
[Order(10)]
public void InsertTrack_ValidData_True()
{
Fixture.CreatedPlaylist.Should().NotBeNull();
Expand All @@ -123,7 +132,7 @@ public void InsertTrack_ValidData_True()
}

[Fact]
[Order(10)]
[Order(11)]
public void DeleteTrack_ValidData_True()
{
Fixture.CreatedPlaylist.Should().NotBeNull();
Expand All @@ -135,7 +144,7 @@ public void DeleteTrack_ValidData_True()
}

[Fact]
[Order(11)]
[Order(12)]
public void Rename_ValidData_True()
{
Fixture.CreatedPlaylist.Should().NotBeNull();
Expand All @@ -146,7 +155,7 @@ public void Rename_ValidData_True()
}

[Fact]
[Order(12)]
[Order(13)]
public void Remove_ValidData_True()
{
Fixture.CreatedPlaylist.Should().NotBeNull();
Expand Down
5 changes: 5 additions & 0 deletions Yandex.Music.Client/YandexMusicClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ public YPlaylist GetPodcasts()
return api.Playlist.Podcasts(storage).Result;
}

public YPlaylist GetRewind()
{
return api.Playlist.Rewind(storage).Result;
}

public YPlaylist GetPremiere()
{
return api.Playlist.Premiere(storage).Result;
Expand Down
12 changes: 12 additions & 0 deletions docs/source/api/branches/playlist.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,18 @@ Playlist API
Получение плейлиста Подкасты.

.. code-block:: csharp
public async Task<YResponse<YPlaylist>> RewindAsync(AuthStorage storage)
Получение плейлиста Большая перемотка в асинхронном режиме.

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

.. code-block:: csharp
public async Task<YResponse<YPlaylist>> GetAsync(AuthStorage storage, string user, string kinds)
Expand Down
6 changes: 6 additions & 0 deletions docs/source/client/root.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ YandexMusicClient
Получение плейлиста Подкасты.

.. code-block:: csharp
public YPlaylist GetRewind()
Получение плейлиста Большая перемотка.

.. code-block:: csharp
public YPlaylist GetPremiere()
Expand Down

0 comments on commit 64fcfa8

Please sign in to comment.