diff --git a/LibMpc/Mpc.cs b/LibMpc/Mpc.cs index 21236ec..a56e0b8 100644 --- a/LibMpc/Mpc.cs +++ b/LibMpc/Mpc.cs @@ -52,6 +52,16 @@ namespace LibMpc } } + // TODO: create response type + public async Task SendAsync(IMpcCommand command) + { + var mpdResponse = await _connection.Exec(command.Value); + var respose = command.ParseResponse(mpdResponse); + + return respose; + } + + #region Admin Commands /// /// Disables an MPD output.