using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Top.Api;
namespace DingTalk.Api.Response
{
///
/// CorpChatbotListbychatbotidsResponse.
///
public class CorpChatbotListbychatbotidsResponse : DingTalkResponse
{
///
/// result
///
[XmlElement("result")]
public DingOpenResultDomain Result { get; set; }
///
/// ChatbotResultVoDomain Data Structure.
///
[Serializable]
public class ChatbotResultVoDomain : TopObject
{
///
/// 0-正常,1-只服务端可管理
///
[XmlElement("authority")]
public long Authority { get; set; }
///
/// 2-企业对内机器人,3-企业对外机器人
///
[XmlElement("bot_type")]
public long BotType { get; set; }
///
/// 机器人简介
///
[XmlElement("breif")]
public string Breif { get; set; }
///
/// 机器人chatbotId
///
[XmlElement("chatbot_id")]
public string ChatbotId { get; set; }
///
/// 机器人详细介绍
///
[XmlElement("description")]
public string Description { get; set; }
///
/// INCOMING = 1,OUTGOING = 2,INOUT = 3
///
[XmlElement("function")]
public long Function { get; set; }
///
/// 机器人头像
///
[XmlElement("icon")]
public string Icon { get; set; }
///
/// 向群添加机器人时是否可改头像:0-不可必,1-可改
///
[XmlElement("icon_mdify")]
public long IconMdify { get; set; }
///
/// 手机端是否能添加机器人:0-移动端不能加,1-移动端能添加
///
[XmlElement("mobile_switch")]
public long MobileSwitch { get; set; }
///
/// 机器人名字
///
[XmlElement("name")]
public string Name { get; set; }
///
/// 向群添加机器人时是否可改名字:0-不可必,1-可改
///
[XmlElement("name_modify")]
public long NameModify { get; set; }
///
/// 是否支持单聊:0-不要单聊,1需要单聊
///
[XmlElement("oto_support")]
public long OtoSupport { get; set; }
///
/// 机器人消息回调时在header中添加的token,用于对钉钉鉴权
///
[XmlElement("outgoing_token")]
public string OutgoingToken { get; set; }
///
/// 机器人回调地址
///
[XmlElement("outgoing_url")]
public string OutgoingUrl { get; set; }
///
/// 机器人预览图
///
[XmlElement("preview_media_id")]
public string PreviewMediaId { get; set; }
}
///
/// DingOpenResultDomain Data Structure.
///
[Serializable]
public class DingOpenResultDomain : TopObject
{
///
/// dingOpenErrcode
///
[XmlElement("ding_open_errcode")]
public long DingOpenErrcode { get; set; }
///
/// errorMsg
///
[XmlElement("error_msg")]
public string ErrorMsg { get; set; }
///
/// result
///
[XmlArray("result_list")]
[XmlArrayItem("chatbot_result_vo")]
public List ResultList { get; set; }
///
/// success
///
[XmlElement("success")]
public bool Success { get; set; }
}
}
}