Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit 34aed86

Browse files
authored
Add state to AppBasedLinkQuery for OAuth flow (#906)
1 parent e4baf6f commit 34aed86

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

libraries/bot-schema/src/main/java/com/microsoft/bot/schema/teams/AppBasedLinkQuery.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ public class AppBasedLinkQuery {
1212
@JsonProperty(value = "url")
1313
private String url;
1414

15+
@JsonProperty(value = "state")
16+
private String state;
17+
1518
/**
1619
* Initializes a new empty instance of the AppBasedLinkQuery class.
1720
*/
@@ -45,4 +48,22 @@ public String getUrl() {
4548
public void setUrl(String withUrl) {
4649
url = withUrl;
4750
}
51+
52+
/**
53+
* Gets the magic code for OAuth Flow.
54+
*
55+
* @return The state
56+
*/
57+
public String getState() {
58+
return state;
59+
}
60+
61+
/**
62+
* Sets the magic code for OAuth Flow.
63+
*
64+
* @param withState The state.
65+
*/
66+
public void setState(String withState) {
67+
state = withState;
68+
}
4869
}

0 commit comments

Comments
 (0)