using System; using System.Xml.Serialization; using System.Collections.Generic; using Top.Api; namespace DingTalk.Api.Response { /// /// OapiMaterialNewsListResponse. /// public class OapiMaterialNewsListResponse : DingTalkResponse { /// /// 错误码 /// [XmlElement("errcode")] public long Errcode { get; set; } /// /// 错误信息 /// [XmlElement("errmsg")] public string Errmsg { get; set; } /// /// 当前返回记录数 /// [XmlElement("item_count")] public long ItemCount { get; set; } /// /// 卡片列表 /// [XmlArray("items")] [XmlArrayItem("news_card_d_t_o")] public List Items { get; set; } /// /// 总记录数 /// [XmlElement("total_count")] public long TotalCount { get; set; } /// /// ArticleDTODomain Data Structure. /// [Serializable] public class ArticleDTODomain : TopObject { /// /// 文章id /// [XmlElement("article_id")] public long ArticleId { get; set; } /// /// 文章内容 /// [XmlElement("content")] public string Content { get; set; } /// /// 创建时间 /// [XmlElement("create_time")] public long CreateTime { get; set; } /// /// 摘要 /// [XmlElement("digest")] public string Digest { get; set; } /// /// 发布状态,0-未发布,1-已发布 /// [XmlElement("publish_status")] public long PublishStatus { get; set; } /// /// 发布时间 /// [XmlElement("publish_time")] public long PublishTime { get; set; } /// /// 封面图片的素材id /// [XmlElement("thumb_media_id")] public string ThumbMediaId { get; set; } /// /// 标题 /// [XmlElement("title")] public string Title { get; set; } /// /// 阅读次数 /// [XmlElement("total_view_count")] public long TotalViewCount { get; set; } /// /// 修改时间 /// [XmlElement("update_time")] public long UpdateTime { get; set; } /// /// 文章链接 /// [XmlElement("url")] public string Url { get; set; } /// /// 已读用户数 /// [XmlElement("user_view_count")] public long UserViewCount { get; set; } } /// /// NewsCardDTODomain Data Structure. /// [Serializable] public class NewsCardDTODomain : TopObject { /// /// 文章列表 /// [XmlArray("articles")] [XmlArrayItem("article_d_t_o")] public List Articles { get; set; } /// /// 消息卡片的素材id /// [XmlElement("media_id")] public string MediaId { get; set; } /// /// 消息卡片更新时间 /// [XmlElement("update_time")] public long UpdateTime { get; set; } } } }