using System.Collections.Generic;
using System.Linq;
namespace LibMpc
{
public partial class Commands
{
///
/// https://www.musicpd.org/doc/protocol/reflection_commands.html
///
public static class Reflection
{
// TODO: config
// TODO: commands
// TODO: notcommands
public class TagTypes : IMpcCommand>
{
public string Value => "tagtypes";
IDictionary> IMpcCommand>.FormatResponse(IList> response)
{
var result = new Dictionary>
{
{ "tagtypes", response.Where(item => item.Key.Equals("tagtype")).Select(item => item.Value).ToList() }
};
return result;
}
}
// TODO: urlhandlers
// TODO: decoders
}
}
}