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.message.getmessagestatus /// public class OapiImpaasMessageGetmessagestatusRequest : BaseDingTalkRequest { /// /// 根据异步发送时返回的taskid获取消息 /// public string Request { get; set; } public GetMessageStatusRequestDomain Request_ { set { this.Request = TopUtils.ObjectToJson(value); } } #region IDingTalkRequest Members public override string GetApiName() { return "dingtalk.oapi.impaas.message.getmessagestatus"; } 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 { /// /// 账号的通道 /// [XmlElement("channel")] public string Channel { get; set; } /// /// 账号ID /// [XmlElement("id")] public string Id { get; set; } /// /// 账号的类型 /// [XmlElement("type")] public string Type { get; set; } } /// /// GetMessageStatusRequestDomain Data Structure. /// [Serializable] public class GetMessageStatusRequestDomain : TopObject { /// /// 账号信息 /// [XmlElement("senderid")] public AccountInfoDomain Senderid { get; set; } /// /// 异步返回的任务ID /// [XmlElement("taskid")] public Nullable Taskid { get; set; } } #endregion } }