forked from github/copilot-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDeleteSessionResponse.java
More file actions
25 lines (22 loc) · 966 Bytes
/
DeleteSessionResponse.java
File metadata and controls
25 lines (22 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------------------------------------------*/
package com.github.copilot.sdk.json;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Internal response object from deleting a session.
* <p>
* This is a low-level class for JSON-RPC communication containing the result of
* a session deletion operation.
*
* @see com.github.copilot.sdk.CopilotClient#deleteSession(String)
* @since 1.0.0
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public record DeleteSessionResponse(
/** Whether the deletion was successful. */
@JsonProperty("success") boolean success,
/** The error message, or {@code null} if successful. */
@JsonProperty("error") String error) {
}