/*---------------------------------------------------------------- Copyright (C) 2019 Senparc 文件名:GetMediaListResultJson.cs 文件功能描述:获取素材列表返回结果 创建标识:Senparc - 20150324 ----------------------------------------------------------------*/ using System.Collections.Generic; using Senparc.Weixin.Entities; using Senparc.Weixin.MP.AdvancedAPIs.GroupMessage; namespace Senparc.Weixin.MP.AdvancedAPIs.Media { /// /// 获取素材总数返回结果 /// public class BaseMediaListResultJson : WxJsonResult { /// /// 该类型的素材的总数 /// public int total_count { get; set; } /// /// 本次调用获取的素材的数量 /// public int item_count { get; set; } } /// /// 图文素材的Item /// public class MediaList_NewsResult : BaseMediaListResultJson { public List item { get; set; } } public class MediaList_News_Item { public string media_id { get; set; } public Media_News_Content content { get; set; } /// /// 这个素材的最后更新时间 /// public long update_time { get; set; } } public class Media_News_Content { public List news_item { get; set; } } public class Media_News_Content_Item : NewsModel { public string url { get; set; } /// /// 封面图片的url /// public string thumb_url { get; set; } } /// /// 除图文之外的其他素材的Item /// public class MediaList_OthersResult : BaseMediaListResultJson { public List item { get; set; } } public class MediaList_Others_Item { public string media_id { get; set; } /// /// 文件名称 /// public string name { get; set; } /// /// 这个素材的最后更新时间 /// public long update_time { get; set; } /// /// 图文页的URL,或者,当获取的列表是图片素材列表时,该字段是图片的URL /// public string url { get; set; } } }