1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Top.Api;
 
namespace DingTalk.Api.Response
{
    /// <summary>
    /// CorpChatbotListbychatbotidsResponse.
    /// </summary>
    public class CorpChatbotListbychatbotidsResponse : DingTalkResponse
    {
        /// <summary>
        /// result
        /// </summary>
        [XmlElement("result")]
        public DingOpenResultDomain Result { get; set; }
 
    /// <summary>
/// ChatbotResultVoDomain Data Structure.
/// </summary>
[Serializable]
 
public class ChatbotResultVoDomain : TopObject
{
            /// <summary>
            /// 0-正常,1-只服务端可管理
            /// </summary>
            [XmlElement("authority")]
            public long Authority { get; set; }
    
            /// <summary>
            /// 2-企业对内机器人,3-企业对外机器人
            /// </summary>
            [XmlElement("bot_type")]
            public long BotType { get; set; }
    
            /// <summary>
            /// 机器人简介
            /// </summary>
            [XmlElement("breif")]
            public string Breif { get; set; }
    
            /// <summary>
            /// 机器人chatbotId
            /// </summary>
            [XmlElement("chatbot_id")]
            public string ChatbotId { get; set; }
    
            /// <summary>
            /// 机器人详细介绍
            /// </summary>
            [XmlElement("description")]
            public string Description { get; set; }
    
            /// <summary>
            /// INCOMING = 1,OUTGOING = 2,INOUT = 3
            /// </summary>
            [XmlElement("function")]
            public long Function { get; set; }
    
            /// <summary>
            /// 机器人头像
            /// </summary>
            [XmlElement("icon")]
            public string Icon { get; set; }
    
            /// <summary>
            /// 向群添加机器人时是否可改头像:0-不可必,1-可改
            /// </summary>
            [XmlElement("icon_mdify")]
            public long IconMdify { get; set; }
    
            /// <summary>
            /// 手机端是否能添加机器人:0-移动端不能加,1-移动端能添加
            /// </summary>
            [XmlElement("mobile_switch")]
            public long MobileSwitch { get; set; }
    
            /// <summary>
            /// 机器人名字
            /// </summary>
            [XmlElement("name")]
            public string Name { get; set; }
    
            /// <summary>
            /// 向群添加机器人时是否可改名字:0-不可必,1-可改
            /// </summary>
            [XmlElement("name_modify")]
            public long NameModify { get; set; }
    
            /// <summary>
            /// 是否支持单聊:0-不要单聊,1需要单聊
            /// </summary>
            [XmlElement("oto_support")]
            public long OtoSupport { get; set; }
    
            /// <summary>
            /// 机器人消息回调时在header中添加的token,用于对钉钉鉴权
            /// </summary>
            [XmlElement("outgoing_token")]
            public string OutgoingToken { get; set; }
    
            /// <summary>
            /// 机器人回调地址
            /// </summary>
            [XmlElement("outgoing_url")]
            public string OutgoingUrl { get; set; }
    
            /// <summary>
            /// 机器人预览图
            /// </summary>
            [XmlElement("preview_media_id")]
            public string PreviewMediaId { get; set; }
}
 
    /// <summary>
/// DingOpenResultDomain Data Structure.
/// </summary>
[Serializable]
 
public class DingOpenResultDomain : TopObject
{
            /// <summary>
            /// dingOpenErrcode
            /// </summary>
            [XmlElement("ding_open_errcode")]
            public long DingOpenErrcode { get; set; }
    
            /// <summary>
            /// errorMsg
            /// </summary>
            [XmlElement("error_msg")]
            public string ErrorMsg { get; set; }
    
            /// <summary>
            /// result
            /// </summary>
            [XmlArray("result_list")]
            [XmlArrayItem("chatbot_result_vo")]
            public List<ChatbotResultVoDomain> ResultList { get; set; }
    
            /// <summary>
            /// success
            /// </summary>
            [XmlElement("success")]
            public bool Success { get; set; }
}
 
    }
}