namespace com.clusterrr.TuyaNet { /// /// Response from local Tuya device. /// public class TuyaLocalResponse { /// /// Command code. /// public TuyaCommand Command { get; } /// /// Return code. /// public int ReturnCode { get; } /// /// Response as JSON string. /// public string JSON { get; } internal TuyaLocalResponse(TuyaCommand command, int returnCode, string json) { Command = command; ReturnCode = returnCode; JSON = json; } public override string ToString() => $"{Command}: {JSON} (return code = {ReturnCode})"; } }