Package com.github.copilot.sdk.json
Class DeleteSessionResponse
java.lang.Object
com.github.copilot.sdk.json.DeleteSessionResponse
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DeleteSessionResponse
public DeleteSessionResponse()
-
-
Method Details
-
isSuccess
public boolean isSuccess()Returns whether the deletion was successful.- Returns:
trueif the session was deleted successfully
-
setSuccess
public void setSuccess(boolean success) Sets whether the deletion was successful.- Parameters:
success-trueif successful
-
getError
Gets the error message if the deletion failed.- Returns:
- the error message, or
nullif successful
-
setError
Sets the error message.- Parameters:
error- the error message
-