1
0
mirror of https://github.com/ZetaKebab/MpcNET.git synced 2025-01-14 22:18:43 +00:00

Send Mpc command to execute.

This commit is contained in:
Gabriel 2016-12-05 09:45:20 +01:00
parent 6b72534a7a
commit 71367cea59

View File

@ -52,6 +52,16 @@ namespace LibMpc
} }
} }
// TODO: create response type
public async Task<object> SendAsync(IMpcCommand command)
{
var mpdResponse = await _connection.Exec(command.Value);
var respose = command.ParseResponse(mpdResponse);
return respose;
}
#region Admin Commands #region Admin Commands
/// <summary> /// <summary>
/// Disables an MPD output. /// Disables an MPD output.