using System;
using System.Net;
using LibMpc;
using System.Collections.Generic;
namespace LibMpcApp
{
///
/// Simple console app to test commands and parsed responses.
///
public class Program
{
private static readonly Dictionary> _commands = new Dictionary>
{
{ 1, input => new Commands.Reflection.TagTypes() }
};
public static void Main(string[] args)
{
var mpc = new Mpc(new IPEndPoint(IPAddress.Loopback, 6600));
var connected = mpc.ConnectAsync().GetAwaiter().GetResult();
if (connected)
{
Console.WriteLine("Connected to MPD.");
StartReadCommands(mpc);
}
else
{
Console.WriteLine("Could not connect to MPD.");
}
mpc.DisconnectAsync().GetAwaiter().GetResult();
}
private static void StartReadCommands(Mpc mpc)
{
int userInput = 0;
while ((userInput = DisplayMenu()) != 99)
{
Func