forked from github/copilot-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSetForegroundSessionResponse.java
More file actions
52 lines (43 loc) · 1.29 KB
/
SetForegroundSessionResponse.java
File metadata and controls
52 lines (43 loc) · 1.29 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------------------------------------------*/
package com.github.copilot.sdk.json;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Response from session.setForeground RPC call.
* <p>
* This is only available when connecting to a server running in TUI+server mode
* (--ui-server).
*
* @since 1.0.0
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class SetForegroundSessionResponse {
@JsonProperty("success")
private boolean success;
@JsonProperty("error")
private String error;
/**
* Whether the operation was successful.
*
* @return true if successful
*/
public boolean isSuccess() {
return success;
}
public void setSuccess(boolean success) {
this.success = success;
}
/**
* Gets the error message if the operation failed.
*
* @return the error message, or null if successful
*/
public String getError() {
return error;
}
public void setError(String error) {
this.error = error;
}
}