forked from github/copilot-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGetForegroundSessionResponse.java
More file actions
52 lines (43 loc) · 1.4 KB
/
GetForegroundSessionResponse.java
File metadata and controls
52 lines (43 loc) · 1.4 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.getForeground 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 GetForegroundSessionResponse {
@JsonProperty("sessionId")
private String sessionId;
@JsonProperty("workspacePath")
private String workspacePath;
/**
* Gets the session ID currently displayed in the TUI.
*
* @return the session ID, or null if no foreground session
*/
public String getSessionId() {
return sessionId;
}
public void setSessionId(String sessionId) {
this.sessionId = sessionId;
}
/**
* Gets the workspace path of the foreground session.
*
* @return the workspace path, or null
*/
public String getWorkspacePath() {
return workspacePath;
}
public void setWorkspacePath(String workspacePath) {
this.workspacePath = workspacePath;
}
}