1
0
mirror of https://github.com/ZetaKebab/MpcNET.git synced 2024-09-16 05:30:09 +00:00
MpcNET/LibMpc/Commands/Commands.Reflection.cs
glucaci 4ffa4bca6c Formatting output responsability of command.
Commands: disableoutput, enableoutput, outputs, tagtypes, update implemented.
2016-12-07 10:34:55 +01:00

37 lines
1.1 KiB
C#

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