public override Task SubmitDownload(MusicItem track) { // does intentionally not await completion of download var t = DownloadAsync(track); return(AsyncTasks.Noop()); }
public override Task Send(string content) { if (IsConnected && ws.State == WebSocketState.Open) { ws.Send(content); } return(AsyncTasks.Noop()); }
public Task UninstallPlayer() { return(WebAware(async() => { if (player != null) { player.Unsubscribe(); player.PlayerStateChanged -= p_PlayerStateChanged; } await AsyncTasks.Noop(); })); }
public Task Testing() { Assert.AreEqual(1, 1); return(AsyncTasks.Noop()); }
public override Task Ping() { return(AsyncTasks.Noop()); }
protected virtual Task OnStatusUpdated() { return(AsyncTasks.Noop()); }
protected override Task SendSkipCommand(int index) { PlaylistDatabase.SetIndex(index); return(AsyncTasks.Noop()); }
/// <summary> /// clicking back does not fire OnPivotSelectionChanged, only OnNavigatedTo /// </summary> /// <returns></returns> protected virtual Task OnMusicItemsNavigatedTo() { UpdateMusicLibraryAppBarButtons(); return(AsyncTasks.Noop()); }
private Task BeforeDownload(IEnumerable <MusicItem> tracks) { return(AsyncTasks.Noop()); }
public override Task next() { player.SkipNext(); return(AsyncTasks.Noop()); }
protected override Task RemoveSongInternal(int playlistIndex) { // not supported return(AsyncTasks.Noop()); }
protected override Task SendSkipCommand(int playlistIndex) { // not used because SkipTo is overridden, fix api perhaps return(AsyncTasks.Noop()); }
protected virtual Task Add(MusicItem song) { Songs.Add(new PlaylistMusicItem(song, Songs.Count)); return(AsyncTasks.Noop()); }
protected override Task Delete(string fileName) { FileUtils.Delete(fileName); return(AsyncTasks.Noop()); }
public override Task Delete(string relativePath) { FileUtils.WithStorage(s => s.DeleteFile(relativePath)); return(AsyncTasks.Noop()); }
public override Task seek(double pos) { PlayerControl.Position = TimeSpan.FromSeconds(pos); return(AsyncTasks.Noop()); }
public Task Test() { //await TestWebSocketsWrapper(); return(AsyncTasks.Noop()); }
public override Task previous() { player.SkipPrevious(); return(AsyncTasks.Noop()); }
// TODO: refactor private Task BeforeDownload(MusicItem track) { return(AsyncTasks.Noop()); }
public Task Play() { Player.Play(); return(AsyncTasks.Noop()); }
public override Task LoadData() { return(AsyncTasks.Noop()); }
public Task Pause() { Player.Pause(); return(AsyncTasks.Noop()); }
public Task Stop() { Player.Stop(); return(AsyncTasks.Noop()); }
public override Task TryToConnect() { return(AsyncTasks.Noop()); }
public virtual Task DeletePlaylist(string playlistID) { return(AsyncTasks.Noop()); }
public override Task Subscribe() { return(AsyncTasks.Noop()); }
public override Task Upload(MusicItem song, string resource, PimpSession destSession) { MessagingService.Instance.Send("Sorry, MusicBeaming is not supported with Subsonic as music source. The music source must be a MusicPimp server or your local device."); return(AsyncTasks.Noop()); }
public override Task SetVolume(int newVolume) { PlayerControl.Volume = 1.0 * newVolume / 100; Volume = newVolume; return(AsyncTasks.Noop()); }
public override Task SetBackground(Uri uri) { RootPageViewModel.Instance.SetBackgroundUri(uri); return(AsyncTasks.Noop()); }
public virtual Task playPlaylist() { return(AsyncTasks.Noop()); }