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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Top.Api;
 
namespace DingTalk.Api.Response
{
    /// <summary>
    /// OapiMaterialNewsListResponse.
    /// </summary>
    public class OapiMaterialNewsListResponse : DingTalkResponse
    {
        /// <summary>
        /// 错误码
        /// </summary>
        [XmlElement("errcode")]
        public long Errcode { get; set; }
 
        /// <summary>
        /// 错误信息
        /// </summary>
        [XmlElement("errmsg")]
        public string Errmsg { get; set; }
 
        /// <summary>
        /// 当前返回记录数
        /// </summary>
        [XmlElement("item_count")]
        public long ItemCount { get; set; }
 
        /// <summary>
        /// 卡片列表
        /// </summary>
        [XmlArray("items")]
        [XmlArrayItem("news_card_d_t_o")]
        public List<NewsCardDTODomain> Items { get; set; }
 
        /// <summary>
        /// 总记录数
        /// </summary>
        [XmlElement("total_count")]
        public long TotalCount { get; set; }
 
    /// <summary>
/// ArticleDTODomain Data Structure.
/// </summary>
[Serializable]
 
public class ArticleDTODomain : TopObject
{
            /// <summary>
            /// 文章id
            /// </summary>
            [XmlElement("article_id")]
            public long ArticleId { get; set; }
    
            /// <summary>
            /// 文章内容
            /// </summary>
            [XmlElement("content")]
            public string Content { get; set; }
    
            /// <summary>
            /// 创建时间
            /// </summary>
            [XmlElement("create_time")]
            public long CreateTime { get; set; }
    
            /// <summary>
            /// 摘要
            /// </summary>
            [XmlElement("digest")]
            public string Digest { get; set; }
    
            /// <summary>
            /// 发布状态,0-未发布,1-已发布
            /// </summary>
            [XmlElement("publish_status")]
            public long PublishStatus { get; set; }
    
            /// <summary>
            /// 发布时间
            /// </summary>
            [XmlElement("publish_time")]
            public long PublishTime { get; set; }
    
            /// <summary>
            /// 封面图片的素材id
            /// </summary>
            [XmlElement("thumb_media_id")]
            public string ThumbMediaId { get; set; }
    
            /// <summary>
            /// 标题
            /// </summary>
            [XmlElement("title")]
            public string Title { get; set; }
    
            /// <summary>
            /// 阅读次数
            /// </summary>
            [XmlElement("total_view_count")]
            public long TotalViewCount { get; set; }
    
            /// <summary>
            /// 修改时间
            /// </summary>
            [XmlElement("update_time")]
            public long UpdateTime { get; set; }
    
            /// <summary>
            /// 文章链接
            /// </summary>
            [XmlElement("url")]
            public string Url { get; set; }
    
            /// <summary>
            /// 已读用户数
            /// </summary>
            [XmlElement("user_view_count")]
            public long UserViewCount { get; set; }
}
 
    /// <summary>
/// NewsCardDTODomain Data Structure.
/// </summary>
[Serializable]
 
public class NewsCardDTODomain : TopObject
{
            /// <summary>
            /// 文章列表
            /// </summary>
            [XmlArray("articles")]
            [XmlArrayItem("article_d_t_o")]
            public List<ArticleDTODomain> Articles { get; set; }
    
            /// <summary>
            /// 消息卡片的素材id
            /// </summary>
            [XmlElement("media_id")]
            public string MediaId { get; set; }
    
            /// <summary>
            /// 消息卡片更新时间
            /// </summary>
            [XmlElement("update_time")]
            public long UpdateTime { get; set; }
}
 
    }
}