// -------------------------------------------------------------------------------------------------------------------- // // Copyright (c) MpcNET. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // // -------------------------------------------------------------------------------------------------------------------- namespace MpcNET.Commands.Output { using System.Collections.Generic; /// /// Turns an output on or off, depending on the current state. /// internal class ToggleOutputCommand : IMpcCommand { private readonly int outputId; public ToggleOutputCommand(int outputId) { this.outputId = outputId; } public string Serialize() => string.Join(" ", "toggleoutput", this.outputId); public string Deserialize(IReadOnlyList> response) { return string.Join(", ", response); } } }