diff --git a/LibMpc.sln b/LibMpc.sln index 6f7d4f0..f7f72df 100644 --- a/LibMpc.sln +++ b/LibMpc.sln @@ -5,8 +5,6 @@ VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "LibMpc", "LibMpc\LibMpc.xproj", "{8994C820-7BA9-4BB8-B9EA-C608B07C4A11}" EndProject -Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "LibMpcApp", "LibMpcApp\LibMpcApp.xproj", "{FF176AD5-D6DA-41EE-B27D-1DBEF0CE462F}" -EndProject Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "LibMpcTest", "LibMpcTest\LibMpcTest.xproj", "{69F1D68F-9CD5-4EA6-9B47-2A7A9BF8CED9}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Utilities", "Solution Utilities", "{83D06F7C-1336-4AC3-82BB-FDE7940D3C10}" @@ -24,10 +22,6 @@ Global {8994C820-7BA9-4BB8-B9EA-C608B07C4A11}.Debug|Any CPU.Build.0 = Debug|Any CPU {8994C820-7BA9-4BB8-B9EA-C608B07C4A11}.Release|Any CPU.ActiveCfg = Release|Any CPU {8994C820-7BA9-4BB8-B9EA-C608B07C4A11}.Release|Any CPU.Build.0 = Release|Any CPU - {FF176AD5-D6DA-41EE-B27D-1DBEF0CE462F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FF176AD5-D6DA-41EE-B27D-1DBEF0CE462F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FF176AD5-D6DA-41EE-B27D-1DBEF0CE462F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FF176AD5-D6DA-41EE-B27D-1DBEF0CE462F}.Release|Any CPU.Build.0 = Release|Any CPU {69F1D68F-9CD5-4EA6-9B47-2A7A9BF8CED9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {69F1D68F-9CD5-4EA6-9B47-2A7A9BF8CED9}.Debug|Any CPU.Build.0 = Debug|Any CPU {69F1D68F-9CD5-4EA6-9B47-2A7A9BF8CED9}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/LibMpcApp/LibMpcApp.xproj b/LibMpcApp/LibMpcApp.xproj deleted file mode 100644 index b0a483b..0000000 --- a/LibMpcApp/LibMpcApp.xproj +++ /dev/null @@ -1,21 +0,0 @@ - - - - 14.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - - - - - ff176ad5-d6da-41ee-b27d-1dbef0ce462f - LibMpcApp - .\obj - .\bin\ - v4.5.2 - - - - 2.0 - - - diff --git a/LibMpcApp/Program.cs b/LibMpcApp/Program.cs deleted file mode 100644 index 688f0fa..0000000 --- a/LibMpcApp/Program.cs +++ /dev/null @@ -1,88 +0,0 @@ -using System; -using System.Net; -using LibMpc; - -namespace LibMpcApp -{ - /// - /// Simple console app to test commands and parsed responses. - /// - public class Program - { - 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) - { - var response = new object(); - - switch (userInput) - { - case 11: - response = mpc.SendAsync(new Commands.Output.DisableOutput(0)).GetAwaiter().GetResult(); - break; - case 12: - response = mpc.SendAsync(new Commands.Output.EnableOutput(0)).GetAwaiter().GetResult(); - break; - case 13: - response = mpc.SendAsync(new Commands.Output.Outputs()).GetAwaiter().GetResult(); - break; - - case 24: - response = mpc.SendAsync(new Commands.Reflection.TagTypes()).GetAwaiter().GetResult(); - break; - - case 313: - response = mpc.SendAsync(new Commands.Database.Update()).GetAwaiter().GetResult(); - break; - } - - Console.WriteLine("Response: "); - Console.WriteLine(response); - } - } - - static public int DisplayMenu() - { - Console.WriteLine(); - Console.WriteLine("Commands: "); - - Console.WriteLine(); - Console.WriteLine("11. disableoutput 0"); - Console.WriteLine("12. enableoutput 0"); - Console.WriteLine("13. outputs"); - - Console.WriteLine(); - Console.WriteLine("Reflection"); - Console.WriteLine("24. tagtypes"); - - Console.WriteLine(); - Console.WriteLine("Database"); - Console.WriteLine("313. update"); - - Console.WriteLine(); - Console.WriteLine("99. Exit"); - Console.WriteLine(); - var result = Console.ReadLine(); - return Convert.ToInt32(result); - } - } -} diff --git a/LibMpcApp/Properties/AssemblyInfo.cs b/LibMpcApp/Properties/AssemblyInfo.cs deleted file mode 100644 index c72cd92..0000000 --- a/LibMpcApp/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Windows User")] -[assembly: AssemblyProduct("LibMpcApp")] -[assembly: AssemblyTrademark("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("ff176ad5-d6da-41ee-b27d-1dbef0ce462f")] diff --git a/LibMpcApp/project.json b/LibMpcApp/project.json deleted file mode 100644 index b24b498..0000000 --- a/LibMpcApp/project.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "version": "1.0.0-*", - "buildOptions": { - "emitEntryPoint": true - }, - - "dependencies": { - "LibMpc": "1.0.0-*", - "Microsoft.NETCore.App": { - "type": "platform", - "version": "1.0.1" - } - }, - - "frameworks": { - "netcoreapp1.0": { - "imports": "dnxcore50" - } - } -}