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:
parent
6b72534a7a
commit
71367cea59
@ -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
|
||||
/// <summary>
|
||||
/// Disables an MPD output.
|
||||
|
Loading…
Reference in New Issue
Block a user