Class
CommandExecResult
Represents the result of a command execution.
Inheritance
- Object
- CommandExecResult
Constructors
public CommandExecResult(Nullable<Int32> exitCode, String stdout, String stderr, JsonObject raw, JsonObject additional) #Initializes a new command execution result.
Parameters
- exitCode System.Nullable{System.Int32}
- stdout System.String
- stderr System.String
- raw IntelligenceX.Json.JsonObject
- additional IntelligenceX.Json.JsonObject
Methods
public static CommandExecResult FromJson(JsonObject obj) #Returns:
CommandExecResultParses a command execution result from JSON.
Parameters
- obj IntelligenceX.Json.JsonObject
- Source JSON object.
Returns
The parsed result.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public Nullable<Int32> ExitCode { get; } #Gets the exit code when available.
public String Stdout { get; } #Gets standard output.
public String Stderr { get; } #Gets standard error.
public JsonObject Raw { get; } #Gets the raw JSON object.
public JsonObject Additional { get; } #Gets unrecognized fields from the payload.