Example #1
0
 /// <summary>
 /// Move songs at range to specified position
 /// </summary>
 public async Task MoveRange(Commands.Range range, int to)
 {
     await ExecuteCommandAsync(new Commands.Move(range, to));
 }
Example #2
0
        /// <summary>
        /// Loads the playlist (or a range) into the current queue
        /// </summary>
        public async Task <Responses.Ok> Load(string listName, Commands.Range range = null)
        {
            var resp = await ExecuteCommandAsync(new Commands.Load(listName, range));

            return((Responses.Ok)resp);
        }
Example #3
0
 /// <summary>
 /// Shuffles the queue
 /// </summary>
 /// <param name="range">Specifies the range to shuffle</param>
 public async Task Shuffle(Commands.Range range)
 {
     // is either OK or Exception
     await ExecuteCommandAsync(new Commands.Shuffle(range));
 }