Обнновлено до .net10
This commit is contained in:
@@ -1,28 +1,27 @@
|
||||
using YandexMusic.API.Models.Radio;
|
||||
using YandexMusic.API.Models.Track;
|
||||
|
||||
namespace YandexMusic.API.Extensions.API
|
||||
namespace YandexMusic.API.Extensions.API;
|
||||
|
||||
/// <summary>
|
||||
/// Методы-расширения для радиостанции
|
||||
/// </summary>
|
||||
public static partial class YStationResultExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Методы-расширения для радиостанции
|
||||
/// </summary>
|
||||
public static partial class YStationResultExtensions
|
||||
public static async Task<List<YSequenceItem>> GetTracksAsync(this YStation station, string prevTrackId = "")
|
||||
{
|
||||
public static async Task<List<YSequenceItem>> GetTracksAsync(this YStation station, string prevTrackId = "")
|
||||
{
|
||||
return (await station.Context.API.Radio.GetStationTracksAsync(station.Context.Storage, station, prevTrackId))
|
||||
.Result.Sequence;
|
||||
}
|
||||
return (await station.Context.API.Radio.GetStationTracksAsync(station.Context.Storage, station, prevTrackId))
|
||||
.Result.Sequence;
|
||||
}
|
||||
|
||||
public static async Task<string> SetSettings2Async(this YStation station, YStationSettings2 settings)
|
||||
{
|
||||
return (await station.Context.API.Radio.SetStationSettings2Async(station.Context.Storage, station, settings))
|
||||
.Result;
|
||||
}
|
||||
public static async Task<string> SetSettings2Async(this YStation station, YStationSettings2 settings)
|
||||
{
|
||||
return (await station.Context.API.Radio.SetStationSettings2Async(station.Context.Storage, station, settings))
|
||||
.Result;
|
||||
}
|
||||
|
||||
public static Task<string> SendFeedBackAsync(this YStation station, YStationFeedbackType type, YTrack track = null, string batchId = "", double totalPlayedSeconds = 0)
|
||||
{
|
||||
return station.Context.API.Radio.SendStationFeedBackAsync(station.Context.Storage, station, type, track, batchId, totalPlayedSeconds);
|
||||
}
|
||||
public static Task<string> SendFeedBackAsync(this YStation station, YStationFeedbackType type, YTrack track = null, string batchId = "", double totalPlayedSeconds = 0)
|
||||
{
|
||||
return station.Context.API.Radio.SendStationFeedBackAsync(station.Context.Storage, station, type, track, batchId, totalPlayedSeconds);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user