예제 #1
0
        public override Task SubmitDownload(MusicItem track)
        {
            // does intentionally not await completion of download
            var t = DownloadAsync(track);

            return(AsyncTasks.Noop());
        }
예제 #2
0
 public override Task Send(string content)
 {
     if (IsConnected && ws.State == WebSocketState.Open)
     {
         ws.Send(content);
     }
     return(AsyncTasks.Noop());
 }
예제 #3
0
 public Task UninstallPlayer()
 {
     return(WebAware(async() => {
         if (player != null)
         {
             player.Unsubscribe();
             player.PlayerStateChanged -= p_PlayerStateChanged;
         }
         await AsyncTasks.Noop();
     }));
 }
예제 #4
0
 public Task Testing()
 {
     Assert.AreEqual(1, 1);
     return(AsyncTasks.Noop());
 }
예제 #5
0
 public override Task Ping()
 {
     return(AsyncTasks.Noop());
 }
예제 #6
0
 protected virtual Task OnStatusUpdated()
 {
     return(AsyncTasks.Noop());
 }
예제 #7
0
 protected override Task SendSkipCommand(int index)
 {
     PlaylistDatabase.SetIndex(index);
     return(AsyncTasks.Noop());
 }
예제 #8
0
 /// <summary>
 /// clicking back does not fire OnPivotSelectionChanged, only OnNavigatedTo
 /// </summary>
 /// <returns></returns>
 protected virtual Task OnMusicItemsNavigatedTo()
 {
     UpdateMusicLibraryAppBarButtons();
     return(AsyncTasks.Noop());
 }
예제 #9
0
 private Task BeforeDownload(IEnumerable <MusicItem> tracks)
 {
     return(AsyncTasks.Noop());
 }
예제 #10
0
 public override Task next()
 {
     player.SkipNext();
     return(AsyncTasks.Noop());
 }
예제 #11
0
 protected override Task RemoveSongInternal(int playlistIndex)
 {
     // not supported
     return(AsyncTasks.Noop());
 }
예제 #12
0
 protected override Task SendSkipCommand(int playlistIndex)
 {
     // not used because SkipTo is overridden, fix api perhaps
     return(AsyncTasks.Noop());
 }
예제 #13
0
 protected virtual Task Add(MusicItem song)
 {
     Songs.Add(new PlaylistMusicItem(song, Songs.Count));
     return(AsyncTasks.Noop());
 }
예제 #14
0
 protected override Task Delete(string fileName)
 {
     FileUtils.Delete(fileName);
     return(AsyncTasks.Noop());
 }
예제 #15
0
 public override Task Delete(string relativePath)
 {
     FileUtils.WithStorage(s => s.DeleteFile(relativePath));
     return(AsyncTasks.Noop());
 }
예제 #16
0
 public override Task seek(double pos)
 {
     PlayerControl.Position = TimeSpan.FromSeconds(pos);
     return(AsyncTasks.Noop());
 }
예제 #17
0
 public Task Test()
 {
     //await TestWebSocketsWrapper();
     return(AsyncTasks.Noop());
 }
예제 #18
0
 public override Task previous()
 {
     player.SkipPrevious();
     return(AsyncTasks.Noop());
 }
예제 #19
0
 // TODO: refactor
 private Task BeforeDownload(MusicItem track)
 {
     return(AsyncTasks.Noop());
 }
예제 #20
0
 public Task Play()
 {
     Player.Play();
     return(AsyncTasks.Noop());
 }
예제 #21
0
 public override Task LoadData()
 {
     return(AsyncTasks.Noop());
 }
예제 #22
0
 public Task Pause()
 {
     Player.Pause();
     return(AsyncTasks.Noop());
 }
예제 #23
0
 public Task Stop()
 {
     Player.Stop();
     return(AsyncTasks.Noop());
 }
예제 #24
0
 public override Task TryToConnect()
 {
     return(AsyncTasks.Noop());
 }
예제 #25
0
 public virtual Task DeletePlaylist(string playlistID)
 {
     return(AsyncTasks.Noop());
 }
예제 #26
0
 public override Task Subscribe()
 {
     return(AsyncTasks.Noop());
 }
예제 #27
0
 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());
 }
예제 #28
0
 public override Task SetVolume(int newVolume)
 {
     PlayerControl.Volume = 1.0 * newVolume / 100;
     Volume = newVolume;
     return(AsyncTasks.Noop());
 }
예제 #29
0
 public override Task SetBackground(Uri uri)
 {
     RootPageViewModel.Instance.SetBackgroundUri(uri);
     return(AsyncTasks.Noop());
 }
예제 #30
0
 public virtual Task playPlaylist()
 {
     return(AsyncTasks.Noop());
 }