This repository has been archived by the owner on Dec 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Action.Execute support (#1104)
Co-authored-by: tracyboehrer <[email protected]>
- Loading branch information
1 parent
e01aef1
commit d4c8cb7
Showing
6 changed files
with
467 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
libraries/bot-schema/src/main/java/com/microsoft/bot/schema/AdaptiveCardAuthentication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MT License. | ||
|
||
package com.microsoft.bot.schema; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Defines the structure that arrives in the Activity.getValue().Authentication | ||
* for Invoke activity with Name of 'adaptiveCard/action'. | ||
*/ | ||
public class AdaptiveCardAuthentication { | ||
|
||
@JsonProperty(value = "id") | ||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
private String id; | ||
|
||
@JsonProperty(value = "connectionName") | ||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
private String connectionName; | ||
|
||
@JsonProperty(value = "token") | ||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
private String token; | ||
|
||
/** | ||
* Gets the Id of the adaptive card invoke authentication. | ||
* @return the Id value as a String. | ||
*/ | ||
public String getId() { | ||
return this.id; | ||
} | ||
|
||
/** | ||
* Sets the Id of the adaptive card invoke authentication. | ||
* @param withId The Id value. | ||
*/ | ||
public void setId(String withId) { | ||
this.id = withId; | ||
} | ||
|
||
/** | ||
* Gets the connection name of the adaptive card authentication. | ||
* @return the ConnectionName value as a String. | ||
*/ | ||
public String getConnectionName() { | ||
return this.connectionName; | ||
} | ||
|
||
/** | ||
* Sets the connection name of the adaptive card authentication. | ||
* @param withConnectionName The ConnectionName value. | ||
*/ | ||
public void setConnectionName(String withConnectionName) { | ||
this.connectionName = withConnectionName; | ||
} | ||
|
||
/** | ||
* Gets the token of the adaptive card authentication. | ||
* @return the Token value as a String. | ||
*/ | ||
public String getToken() { | ||
return this.token; | ||
} | ||
|
||
/** | ||
* Sets the token of the adaptive card authentication. | ||
* @param withToken The Token value. | ||
*/ | ||
public void setToken(String withToken) { | ||
this.token = withToken; | ||
} | ||
|
||
} |
95 changes: 95 additions & 0 deletions
95
libraries/bot-schema/src/main/java/com/microsoft/bot/schema/AdaptiveCardInvokeAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MT License. | ||
|
||
package com.microsoft.bot.schema; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Defines the structure that arrives in the Activity.getValue().Action for | ||
* Invoke activity with Name of 'adaptiveCard/action'. | ||
*/ | ||
public class AdaptiveCardInvokeAction { | ||
|
||
@JsonProperty(value = "type") | ||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
private String type; | ||
|
||
@JsonProperty(value = "id") | ||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
private String id; | ||
|
||
@JsonProperty(value = "verb") | ||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
private String verb; | ||
|
||
@JsonProperty(value = "data") | ||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
private Object data; | ||
|
||
/** | ||
* Gets the Type of this adaptive card action invoke. | ||
* @return the Type value as a String. | ||
*/ | ||
public String getType() { | ||
return this.type; | ||
} | ||
|
||
/** | ||
* Sets the Type of this adaptive card action invoke. | ||
* @param withType The Type value. | ||
*/ | ||
public void setType(String withType) { | ||
this.type = withType; | ||
} | ||
|
||
/** | ||
* Gets the Id of this adaptive card action invoke. | ||
* @return the Id value as a String. | ||
*/ | ||
public String getId() { | ||
return this.id; | ||
} | ||
|
||
/** | ||
* Sets the Id of this adaptive card action invoke. | ||
* @param withId The Id value. | ||
*/ | ||
public void setId(String withId) { | ||
this.id = withId; | ||
} | ||
|
||
/** | ||
* Gets the Verb of this adaptive card action invoke. | ||
* @return the Verb value as a String. | ||
*/ | ||
public String getVerb() { | ||
return this.verb; | ||
} | ||
|
||
/** | ||
* Sets the Verb of this adaptive card action invoke. | ||
* @param withVerb The Verb value. | ||
*/ | ||
public void setVerb(String withVerb) { | ||
this.verb = withVerb; | ||
} | ||
|
||
/** | ||
* Gets the Data of this adaptive card action invoke. | ||
* @return the Data value as a Object. | ||
*/ | ||
public Object getData() { | ||
return this.data; | ||
} | ||
|
||
/** | ||
* Sets the Data of this adaptive card action invoke. | ||
* @param withData The Data value. | ||
*/ | ||
public void setData(Object withData) { | ||
this.data = withData; | ||
} | ||
|
||
} |
Oops, something went wrong.