zrg
2024-08-16 18865d8bf24382e850e661dec6cca0e8b9dba6ae
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
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
{
    /// <summary>
    /// TOP API: dingtalk.oapi.impaas.message.getmessagestatus
    /// </summary>
    public class OapiImpaasMessageGetmessagestatusRequest : BaseDingTalkRequest<DingTalk.Api.Response.OapiImpaasMessageGetmessagestatusResponse>
    {
        /// <summary>
        /// 根据异步发送时返回的taskid获取消息
        /// </summary>
        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<string, string> 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);
        }
 
    /// <summary>
/// AccountInfoDomain Data Structure.
/// </summary>
[Serializable]
 
public class AccountInfoDomain : TopObject
{
            /// <summary>
            /// 账号的通道
            /// </summary>
            [XmlElement("channel")]
            public string Channel { get; set; }
    
            /// <summary>
            /// 账号ID
            /// </summary>
            [XmlElement("id")]
            public string Id { get; set; }
    
            /// <summary>
            /// 账号的类型
            /// </summary>
            [XmlElement("type")]
            public string Type { get; set; }
}
 
    /// <summary>
/// GetMessageStatusRequestDomain Data Structure.
/// </summary>
[Serializable]
 
public class GetMessageStatusRequestDomain : TopObject
{
            /// <summary>
            /// 账号信息
            /// </summary>
            [XmlElement("senderid")]
            public AccountInfoDomain Senderid { get; set; }
    
            /// <summary>
            /// 异步返回的任务ID
            /// </summary>
            [XmlElement("taskid")]
            public Nullable<long> Taskid { get; set; }
}
 
        #endregion
    }
}