forked from github/copilot-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSessionLifecycleEvent.java
More file actions
53 lines (41 loc) · 1.36 KB
/
SessionLifecycleEvent.java
File metadata and controls
53 lines (41 loc) · 1.36 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
53
/*---------------------------------------------------------------------------------------------
* 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;
/**
* Session lifecycle event notification.
* <p>
* Lifecycle events are emitted when sessions are created, deleted, updated, or
* change foreground/background state (in TUI+server mode).
*
* @since 1.0.0
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class SessionLifecycleEvent {
@JsonProperty("type")
private String type;
@JsonProperty("sessionId")
private String sessionId;
@JsonProperty("metadata")
private SessionLifecycleEventMetadata metadata;
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getSessionId() {
return sessionId;
}
public void setSessionId(String sessionId) {
this.sessionId = sessionId;
}
public SessionLifecycleEventMetadata getMetadata() {
return metadata;
}
public void setMetadata(SessionLifecycleEventMetadata metadata) {
this.metadata = metadata;
}
}