mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-24 13:03:43 +08:00
feat(wxapi): 新增小程序短剧媒资管理相关接口
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
|
@@ -0,0 +1,80 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/auditdrama 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodAuditDramaRequest : WechatApiRequest, IInferable<WxaSecVodAuditDramaRequest, WxaSecVodAuditDramaResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置剧目 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("drama_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("drama_id")]
|
||||
public long? DramaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置剧名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string? Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("description")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置媒资文件数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_count")]
|
||||
public int? MediaCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置媒资文件 ID 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_id_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_id_list")]
|
||||
public IList<long>? MediaIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置制作方。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("producer")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("producer")]
|
||||
public string? Producer { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置编剧。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("playwright")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("playwright")]
|
||||
public string? Playwright { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置封面图片 MediaId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cover_material_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cover_material_id")]
|
||||
public string? CoverMaterialMediaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置广播电视节目制作经营许可证 MediaId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("production_license_material_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("production_license_material_id")]
|
||||
public string? ProductionLicenseMaterialMediaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置剧目播放授权材料 MediaId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("authorized_material_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("authorized_material_id")]
|
||||
public string? AuthorizationMaterialMediaId { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,16 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/auditdrama 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodAuditDramaResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置剧目 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("drama_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("drama_id")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long DramaId { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/getdrama 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodGetDramaRequest : WechatApiRequest, IInferable<WxaSecVodGetDramaRequest, WxaSecVodGetDramaResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置剧目 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("drama_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("drama_id")]
|
||||
public long DramaId { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,46 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/getdrama 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodGetDramaResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class DramaInfo : WxaSecVodListDramasResponse.Types.DramaInfo
|
||||
{
|
||||
public static new class Types
|
||||
{
|
||||
public class Media : WxaSecVodListDramasResponse.Types.DramaInfo.Types.Media
|
||||
{
|
||||
}
|
||||
|
||||
public class AuditDetail : WxaSecVodListDramasResponse.Types.DramaInfo.Types.AuditDetail
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置媒资文件列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_list")]
|
||||
public new Types.Media[] MediaList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核详细信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_detail")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_detail")]
|
||||
public new Types.AuditDetail? AuditDetail { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置剧目信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("drama_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("drama_info")]
|
||||
public Types.DramaInfo DramaInfo { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/listdramas 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodListDramasRequest : WechatApiRequest, IInferable<WxaSecVodListDramasRequest, WxaSecVodListDramasResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置分页起始位置。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("offset")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("offset")]
|
||||
public int? Offset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页每页数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("limit")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("limit")]
|
||||
public int? Limit { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,130 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/listdramas 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodListDramasResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class DramaInfo
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Media
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置媒资文件 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_id")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long MediaId { get; set; }
|
||||
}
|
||||
|
||||
public class AuditDetail
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置提审时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("create_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("create_time")]
|
||||
public long CreateTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_time")]
|
||||
public long? AuditTimestamp { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置剧目 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("drama_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("drama_id")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long DramaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置剧名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string Name { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("description")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string Description { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置媒资文件数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_count")]
|
||||
public int MediaCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置媒资文件列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_list")]
|
||||
public Types.Media[] MediaList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置创建时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("create_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("create_time")]
|
||||
public long CreateTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置封面图片临时链接。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cover_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cover_url")]
|
||||
public string? CoverUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置制作方。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("producer")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("producer")]
|
||||
public string? Producer { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置编剧。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("playwright")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("playwright")]
|
||||
public string? Playwright { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核详细信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_detail")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_detail")]
|
||||
public Types.AuditDetail? AuditDetail { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置剧目信息列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("drama_info_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("drama_info_list")]
|
||||
public Types.DramaInfo[] DramaInfoList { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/deletemedia 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodDeleteMediaRequest : WechatApiRequest, IInferable<WxaSecVodDeleteMediaRequest, WxaSecVodDeleteMediaResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置媒资文件 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_id")]
|
||||
public long MediaId { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/deletemedia 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodDeleteMediaResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,56 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/getmedialink 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodGetMediaLinkRequest : WechatApiRequest, IInferable<WxaSecVodGetMediaLinkRequest, WxaSecVodGetMediaLinkResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置媒资文件 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_id")]
|
||||
public long MediaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置过期时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("t")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("t")]
|
||||
public long ExpireTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置试看时长(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("expr")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("expr")]
|
||||
public int? ExperienceTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置最多允许多少个不同 IP 的终端播放。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("rlimit")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("rlimit")]
|
||||
public int? IpLimit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置允许访问的域名列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("whref")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualStringListWithCommaSplitConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("whref")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.TextualStringListWithCommaSplitConverter))]
|
||||
public IList<string>? DomainWhiteList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置禁止访问的域名列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("bkref")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualStringListWithCommaSplitConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("bkref")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.TextualStringListWithCommaSplitConverter))]
|
||||
public IList<string>? DomainBlackList { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,71 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/getmedialink 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodGetMediaLinkResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class MediaInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置媒资文件 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_id")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long MediaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置视频名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string MediaName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("description")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string Description { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置时长(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("duration")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("duration")]
|
||||
public int Duration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置封面图片临时链接。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cover_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cover_url")]
|
||||
public string CoverUrl { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 MP4 视频临时链接。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mp4_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mp4_url")]
|
||||
public string VideoMp4Url { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 HLS 视频临时链接。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("hls_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("hls_url")]
|
||||
public string VideoHlsUrl { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置媒资信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_info")]
|
||||
public Types.MediaInfo MediaInfo { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/getmedia 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodGetMediaRequest : WechatApiRequest, IInferable<WxaSecVodGetMediaRequest, WxaSecVodListMediaResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置媒资文件 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_id")]
|
||||
public long MediaId { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,35 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/getmedia 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodGetMediaResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class MediaInfo : WxaSecVodListMediaResponse.Types.MediaInfo
|
||||
{
|
||||
public static new class Types
|
||||
{
|
||||
public class AuditDetail : WxaSecVodListMediaResponse.Types.MediaInfo.Types.AuditDetail
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核详细信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_detail")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_detail")]
|
||||
public new Types.AuditDetail? AuditDetail { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置媒资信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_info")]
|
||||
public Types.MediaInfo MediaInfo { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,50 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/listmedia 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodListMediaRequest : WechatApiRequest, IInferable<WxaSecVodListMediaRequest, WxaSecVodListMediaResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置所属剧目 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("drama_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("drama_id")]
|
||||
public long? DramaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置视频名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_name")]
|
||||
public string? MediaName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置媒资上传开始时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("start_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("start_time")]
|
||||
public long? StartTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置媒资上传结束时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("end_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
|
||||
public long? EndTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页起始位置。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("offset")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("offset")]
|
||||
public int? Offset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页每页数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("limit")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("limit")]
|
||||
public int? Limit { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,156 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/listmedia 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodListMediaResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class MediaInfo
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class AuditDetail
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置提审时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("create_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("create_time")]
|
||||
public long CreateTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_time")]
|
||||
public long? AuditTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核备注。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("reason")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("reason")]
|
||||
public string? Reason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核证据截图 MediaId 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("evidence_material_id_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("evidence_material_id_list")]
|
||||
public string[]? EvidenceMaterialMediaIdList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置所属剧目 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("drama_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("drama_id")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long? DramaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("description")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置媒资文件 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_id")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long MediaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置视频名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string MediaName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置文件大小(单位:字节)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("file_size")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("file_size")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public int FileSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置时长(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("duration")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("duration")]
|
||||
public int Duration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置创建时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("create_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("create_time")]
|
||||
public long CreateTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置过期时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("expire_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("expire_time")]
|
||||
public long ExpireTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置封面图片临时链接。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cover_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cover_url")]
|
||||
public string? CoverUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置原始视频临时链接。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("original_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("original_url")]
|
||||
public string? VideoOriginalUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 MP4 视频临时链接。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mp4_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mp4_url")]
|
||||
public string? VideoMp4Url { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 HLS 视频临时链接。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("hls_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("hls_url")]
|
||||
public string? VideoHlsUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核详细信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_detail")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_detail")]
|
||||
public Types.AuditDetail? AuditDetail { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置媒资信息列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_info_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_info_list")]
|
||||
public Types.MediaInfo[] MediaInfoList { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,36 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/applyupload 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodApplyUploadRequest : WechatApiRequest, IInferable<WxaSecVodApplyUploadRequest, WxaSecVodApplyUploadResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置视频名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_name")]
|
||||
public string MediaName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置视频格式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_type")]
|
||||
public string MediaType { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置视频封面图片格式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cover_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cover_type")]
|
||||
public string? CoverType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置来源上下文。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("source_context")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("source_context")]
|
||||
public string? SourceContext { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/applyupload 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodApplyUploadResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置分片上传 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("upload_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("upload_id")]
|
||||
public string UploadId { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,51 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/commitupload 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodCommitUploadRequest : WechatApiRequest, IInferable<WxaSecVodCommitUploadRequest, WxaSecVodCommitUploadResponse>
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class PartInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置分片编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("part_number")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("part_number")]
|
||||
public int PartNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分片标识。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("etag")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("etag")]
|
||||
public string ETag { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分片上传 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("upload_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("upload_id")]
|
||||
public string UploadId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置视频文件分片信息列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_part_infos")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_part_infos")]
|
||||
public IList<Types.PartInfo> MediaPartInfo { get; set; } = new List<Types.PartInfo>();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置视频封面图片文件分片信息列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cover_part_infos")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cover_part_infos")]
|
||||
public IList<Types.PartInfo>? CoverPartInfo { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,16 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/commitupload 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodCommitUploadResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置媒资文件 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_id")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long MediaId { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/gettask 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodGetTaskRequest : WechatApiRequest, IInferable<WxaSecVodGetTaskRequest, WxaSecVodGetTaskResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置拉取上传任务 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("task_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("task_id")]
|
||||
public long TaskId { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,79 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/gettask 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodGetTaskResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Task
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置拉取上传任务 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("id")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置任务类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("task_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("task_type")]
|
||||
public int Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置任务状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置任务错误码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("errcode")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("errcode")]
|
||||
public int ErrorCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置任务错误原因。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("errmsg")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("errmsg")]
|
||||
public string? ErrorMessage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置创建时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("create_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("create_time")]
|
||||
public long? CreateTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置完成时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("finish_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("finish_time")]
|
||||
public long? FinishTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置媒体文件 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_id")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long? MediaId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置拉取上传任务信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("task_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("task_info")]
|
||||
public Types.Task Task { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,36 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/pullupload 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodPullUploadRequest : WechatApiRequest, IInferable<WxaSecVodPullUploadRequest, WxaSecVodPullUploadResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置视频名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_name")]
|
||||
public string MediaName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置视频 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_url")]
|
||||
public string MediaUrl { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置视频封面 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cover_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cover_url")]
|
||||
public string? CoverUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置来源上下文。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("source_context")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("source_context")]
|
||||
public string? SourceContext { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,16 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/pullupload 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodPullUploadResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置拉取上传任务 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("task_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("task_id")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long TaskId { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,52 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/singlefileupload 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodSingleFileUploadRequest : WechatApiRequest, IInferable<WxaSecVodSingleFileUploadRequest, WxaSecVodSingleFileUploadResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置视频名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string MediaName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置视频格式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string MediaType { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置视频文件字节数组。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public byte[] MediaFileBytes { get; set; } = Array.Empty<byte>();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置视频封面图片格式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string? CoverType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置视频封面文件字节数组。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public byte[]? CoverFileBytes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置来源上下文。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string? SourceContext { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,16 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/singlefileupload 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodSingleFileUploadResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置媒资文件 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_id")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long MediaId { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/uploadpart 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodUploadPartRequest : WechatApiRequest, IInferable<WxaSecVodUploadPartRequest, WxaSecVodSingleFileUploadResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置分片上传 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string UploadId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分片编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public int PartNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分片文件资源类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public int FileType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分片文件字节数组。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public byte[] FileBytes { get; set; } = Array.Empty<byte>();
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/sec/vod/uploadpart 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaSecVodUploadPartResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置根据分片内容生成的标识。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("etag")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("etag")]
|
||||
public string ETag { get; set; } = default!;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user