Переделано воспроизведение аудио
All checks were successful
Release / pack-and-publish (release) Successful in 36s
All checks were successful
Release / pack-and-publish (release) Successful in 36s
This commit is contained in:
@@ -12,17 +12,17 @@ public static class YStationResultExtensions
|
||||
/// Получает список треков для радиостанции.
|
||||
/// </summary>
|
||||
public static async Task<List<YSequenceItem>?> GetTracksAsync(this YStation station, string prevTrackId = "")
|
||||
=> (await station.Context.API.Radio.GetStationTracksAsync(station, prevTrackId))?.Sequence;
|
||||
=> (await station.Context.Api.Radio.GetStationTracksAsync(station, prevTrackId))?.Sequence;
|
||||
|
||||
/// <summary>
|
||||
/// Устанавливает настройки станции.
|
||||
/// </summary>
|
||||
public static async Task<string?> SetSettings2Async(this YStation station, YStationSettings2 settings)
|
||||
=> await station.Context.API.Radio.SetStationSettings2Async(station, settings);
|
||||
=> await station.Context.Api.Radio.SetStationSettings2Async(station, settings);
|
||||
|
||||
/// <summary>
|
||||
/// Отправляет обратную связь о прослушивании.
|
||||
/// </summary>
|
||||
public static Task<string?> SendFeedbackAsync(this YStation station, YStationFeedbackType type, YTrack? track = null, string batchId = "", double totalPlayedSeconds = 0)
|
||||
=> station.Context.API.Radio.SendStationFeedbackAsync(station, type, track, batchId, totalPlayedSeconds);
|
||||
=> station.Context.Api.Radio.SendStationFeedbackAsync(station, type, track, batchId, totalPlayedSeconds);
|
||||
}
|
||||
Reference in New Issue
Block a user