Package com.github.copilot.sdk.json
Class SetForegroundSessionResponse
java.lang.Object
com.github.copilot.sdk.json.SetForegroundSessionResponse
Response from session.setForeground RPC call.
This is only available when connecting to a server running in TUI+server mode (--ui-server).
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SetForegroundSessionResponse
public SetForegroundSessionResponse()
-
-
Method Details
-
isSuccess
public boolean isSuccess()Whether the operation was successful.- Returns:
- true if successful
-
setSuccess
public void setSuccess(boolean success) -
getError
Gets the error message if the operation failed.- Returns:
- the error message, or null if successful
-
setError
-