using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Top.Api.Util;
using Top.Api;
using Top.Api.DingTalk;
namespace DingTalk.Api.Request
{
///
/// TOP API: dingtalk.oapi.impaas.conversation.updateentranceid
///
public class OapiImpaasConversationUpdateentranceidRequest : BaseDingTalkRequest
{
///
/// 参数结构体
///
public string Request { get; set; }
public UpdateEntranceIdRequestDomain Request_ { set { this.Request = TopUtils.ObjectToJson(value); } }
#region IDingTalkRequest Members
public override string GetApiName()
{
return "dingtalk.oapi.impaas.conversation.updateentranceid";
}
public override string GetApiCallType()
{
return DingTalkConstants.CALL_TYPE_OAPI;
}
public override IDictionary GetParameters()
{
TopDictionary parameters = new TopDictionary();
parameters.Add("request", this.Request);
if (this.otherParams != null)
{
parameters.AddAll(this.otherParams);
}
return parameters;
}
public override void Validate()
{
RequestValidator.ValidateRequired("request", this.Request);
}
///
/// AccountInfoDomain Data Structure.
///
[Serializable]
public class AccountInfoDomain : TopObject
{
///
/// 账号通道:eleme,hema等
///
[XmlElement("channel")]
public string Channel { get; set; }
///
/// 账号ID
///
[XmlElement("id")]
public string Id { get; set; }
///
/// 账号类型:channelUser/staff。当类型为channelUser时,填写app自己的账号,当类型为staff时,填写钉钉的staffid
///
[XmlElement("type")]
public string Type { get; set; }
}
///
/// UpdateEntranceIdRequestDomain Data Structure.
///
[Serializable]
public class UpdateEntranceIdRequestDomain : TopObject
{
///
/// 要设置的用户列表
///
[XmlArray("accounts")]
[XmlArrayItem("account_info")]
public List Accounts { get; set; }
///
/// 业务channel
///
[XmlElement("channel")]
public string Channel { get; set; }
///
/// 会话id
///
[XmlElement("cid")]
public string Cid { get; set; }
///
/// 入口id,数字
///
[XmlElement("entrance_id")]
public Nullable EntranceId { get; set; }
///
/// 扩展信息,可选
///
[XmlElement("extension")]
public string Extension { get; set; }
///
/// 该请求的唯一id,用于去重、打日志
///
[XmlElement("uuid")]
public string Uuid { get; set; }
}
#endregion
}
}