以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  这句.net语句在foxtable中如何处理?  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=170267)

--  作者:gudao123456
--  发布时间:2021/7/19 21:23:00
--  这句.net语句在foxtable中如何处理?
在钉钉接口调用用,有两句.net 语句不懂如何转换成foxtab语句,.net语句如下:
OapiMessageCorpconversationAsyncsendV2Request.MsgDomain obj1 = new OapiMessageCorpconversationAsyncsendV2Request.MsgDomain();
OapiMessageCorpconversationAsyncsendV2Request.TextDomain obj2 = new OapiMessageCorpconversationAsyncsendV2Request.TextDomain(); 

不懂如何把变量 obj1 定义。

开发文档提供的完整代码.net码如下:

IDingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/message/corpconversation/asyncsend_v2"); OapiMessageCorpconversationAsyncsendV2Request req = new OapiMessageCorpconversationAsyncsendV2Request();
 req.AgentId = 665705466L; 
req.UseridList = "0412073331748983"; 
OapiMessageCorpconversationAsyncsendV2Request.MsgDomain obj1 = new OapiMessageCorpconversationAsyncsendV2Request.MsgDomain(); 
obj1.Msgtype = "text"; 
OapiMessageCorpconversationAsyncsendV2Request.TextDomain obj2 = new OapiMessageCorpconversationAsyncsendV2Request.TextDomain(); 
obj2.C;
 obj1.Text= obj2;
 req.Msg_ = obj1;
 OapiMessageCorpconversationAsyncsendV2Response rsp = client.Execute(req, access_token);
 Console.WriteLine(rsp.Body);
谢谢!

[此贴子已经被作者于2021/7/19 21:34:40编辑过]

--  作者:有点蓝
--  发布时间:2021/7/19 21:32:00
--  
dim obj1 as new OapiMessageCorpconversationAsyncsendV2Request.MsgDomain()

可以自己转换:https://converter.telerik.com/

--  作者:gudao123456
--  发布时间:2021/7/19 21:58:00
--  
十分感谢老师!