using System;
using System.Collections.Generic;
using Top.Api.Util;
using Top.Api;
using Top.Api.DingTalk;
namespace DingTalk.Api.Request
{
///
/// TOP API: dingtalk.oapi.robot.message.ototask.query
///
public class OapiRobotMessageOtotaskQueryRequest : BaseDingTalkRequest
{
///
/// 申请到的企业机器人唯一标识符
///
public string ChatbotId { get; set; }
///
/// 用于查询发送进度的唯一标识
///
public string ProcessQueryKey { get; set; }
#region IDingTalkRequest Members
public override string GetApiName()
{
return "dingtalk.oapi.robot.message.ototask.query";
}
public override string GetApiCallType()
{
return DingTalkConstants.CALL_TYPE_OAPI;
}
public override IDictionary GetParameters()
{
TopDictionary parameters = new TopDictionary();
parameters.Add("chatbot_id", this.ChatbotId);
parameters.Add("process_query_key", this.ProcessQueryKey);
if (this.otherParams != null)
{
parameters.AddAll(this.otherParams);
}
return parameters;
}
public override void Validate()
{
RequestValidator.ValidateRequired("chatbot_id", this.ChatbotId);
RequestValidator.ValidateRequired("process_query_key", this.ProcessQueryKey);
}
#endregion
}
}