我正在尝试将Microsoft Bot Framework与 WhatsApp集成。
我已经有与机器人服务对话的现有机器人(Skype 和网络聊天),并试图创建一个新的通信渠道。
我怎样才能构建这个新频道?
我已经有了可以从 WhatsApp 发送接收消息的 API,我计划在收到用户的消息时挂钩我的机器人服务,但我不知道如何使用我的机器人服务,因为它接受一个类Activity.
所以我有一个查询来获取记录,过滤条件是这样的
GET tenantforsneha55/permits/_search/
{
"from":0,
"size":10,
"sort":[
{
"permitNumber.keyword":{
"order":"asc"
}
}
],
"query":{
"bool":{
"must":[
{
"terms":{
"workClassId":[
"1",
"2"
]
}
},
{
"terms":{
"typeId":[
"1",
"2"
]
}
}
]
}
}
}
Run Code Online (Sandbox Code Playgroud)
这显示了这样的过滤器的结果获取记录,其中 ["1","2"] 中的 typeId 和 ["1","2"] 中的 classId
但我希望过滤条件像这样 typeId = 1 and classId = 1 OR typeId = 2 and classId = 2。
有没有办法拥有这个?我正在使用 NEST,这个查询是从它生成的,如果你能给我 C#、Elastic v 5.5 中的代码,那就太好了
我是kendo UI的新手,我正在尝试使用Webapi实现Kendo网格,下面的分页不会产生任何影响.API
public IList<Customer> GetCustomers(int take, int skip)
{
this.Customers = FillData.Customers;
this.Orders = FillData.Orders;
return Customers.Skip(skip).Take(take).ToList();
}
Run Code Online (Sandbox Code Playgroud)
和javascript
$(document).ready(function () {
var element = $("#grid").kendoGrid({
dataSource: {
type: "json",
transport: {
read: "/api/GridData/GetCustomers",
dataType: "json"
},
pageSize: 6,
serverPaging: true,
},
height: 600,
sortable: true,
pageable: true,
//detailInit: detailInit,
//dataBound: function () {
// this.expandRow(this.tbody.find("tr.k-master-row").first());
//},
columns: [
{
field: "FirstName",
title: "First Name",
width: "110px"
},
{
field: "LastName",
title: "Last Name",
width: "110px"
},
{
field: "Country", …Run Code Online (Sandbox Code Playgroud)