Class SetForegroundSessionResponse

java.lang.Object
com.github.copilot.sdk.json.SetForegroundSessionResponse

public class SetForegroundSessionResponse extends Object
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 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

      public String getError()
      Gets the error message if the operation failed.
      Returns:
      the error message, or null if successful
    • setError

      public void setError(String error)