1
0
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:
glucaci
2016-12-20 11:03:28 +01:00
parent 9885ffa87b
commit e2ebbe7e14
8 changed files with 71 additions and 31 deletions

View File

@ -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.