Class DeleteSessionResponse

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

public final class DeleteSessionResponse extends Object
Internal response object from deleting a session.

This is a low-level class for JSON-RPC communication containing the result of a session deletion operation.

Since:
1.0.0
See Also:
  • Constructor Details

    • DeleteSessionResponse

      public DeleteSessionResponse()
  • Method Details

    • isSuccess

      public boolean isSuccess()
      Returns whether the deletion was successful.
      Returns:
      true if the session was deleted successfully
    • setSuccess

      public void setSuccess(boolean success)
      Sets whether the deletion was successful.
      Parameters:
      success - true if successful
    • getError

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

      public void setError(String error)
      Sets the error message.
      Parameters:
      error - the error message