如何解决如何在java中检索用户在自适应卡中输入的输入
附上我组队发送的自适应卡片的JSON。
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json","type": "AdaptiveCard","version": "1.0","body": [
{
"type": "Container","items": [
{
"type": "TextBlock","text": "Publish Adaptive Card schema","weight": "bolder","size": "medium"
},{
"type": "ColumnSet","columns": [
{
"type": "Column","width": "auto","items": [
{
"type": "Image","url": "https://pbs.twimg.com/profile_images/3647943215/d7f12830b3c17a5a9e4afcc370e3a37e_400x400.jpeg","size": "medium","style": "person"
}
]
},{
"type": "Column","width": "stretch","items": [
{
"type": "TextBlock","text": "Matt Hidinger","wrap": true
},{
"type": "TextBlock","spacing": "none","text": "Created Tuesday,Feb 14,2017","isSubtle": true,"wrap": true
}
]
}
]
}
]
},{
"type": "Container","text": "Now that we have defined the main rules and features of the format,we need to produce a schema and publish it to GitHub. The schema will be the starting point of our reference documentation.","wrap": true
},{
"type": "FactSet","facts": [
{
"title": "Board:","value": "Adaptive Card"
},{
"title": "List:","value": "Backlog"
},{
"title": "Assigned to:","value": "Matt Hidinger"
},{
"title": "Due date:","value": "Not set"
}
]
}
]
}
],"actions": [
{
"type": "Action.ShowCard","title": "Set due date","card": {
"version": "1.0","body": [
{
"type": "Input.Date","id": "dueDate","title": "Select due date"
}
],"actions": [
{
"type": "Action.Submit","title": "OK"
}
]
}
},{
"type": "Action.ShowCard","title": "Comment","body": [
{
"type": "Input.Text","id": "comment","isMultiline": true,"placeholder": "Enter your comment"
}
],{
"type": "Action.OpenUrl","title": "View","url": "http://adaptivecards.io"
}
]
}
用户输入值并点击确定后,机器人的回复是“Echo:”
如何将输入的值显示为机器人的回复。
我已经实现了这个来获取活动,但是当使用点击确定时不会调用这个方法。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。