mirror of
https://github.com/ZetaKebab/MpcNET.git
synced 2025-07-01 08:47:36 +00:00
Output commands completed + test
This commit is contained in:
@ -52,7 +52,26 @@ namespace LibMpc
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: toggleoutput // Turns an output on or off, depending on the current state.
|
||||
/// <summary>
|
||||
/// Turns an output on or off, depending on the current state.
|
||||
/// </summary>
|
||||
public class ToggleOutput : IMpcCommand<string>
|
||||
{
|
||||
private readonly int _outputId;
|
||||
|
||||
public ToggleOutput(int outputId)
|
||||
{
|
||||
_outputId = outputId;
|
||||
}
|
||||
|
||||
public string Value => string.Join(" ", "toggleoutput", _outputId);
|
||||
|
||||
public string FormatResponse(IList<KeyValuePair<string, string>> response)
|
||||
{
|
||||
// Response should be empty.
|
||||
return string.Join(", ", response);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Shows information about all outputs.
|
||||
|
Reference in New Issue
Block a user