mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-24 04:53:46 +08:00
feat(wxapi): 新增视频号助手留资服务直播数据相关接口
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/finderlive/get_finder_attr_by_appid 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsFinderLiveGetFinderAttributeByAppIdRequest : WechatApiRequest, IInferable<ChannelsFinderLiveGetFinderAttributeByAppIdRequest, ChannelsFinderLiveGetFinderAttributeByAppIdResponse>
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,42 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/finderlive/get_finder_attr_by_appid 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsFinderLiveGetFinderAttributeByAppIdResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class FinderAttribute
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置视频号唯一标识。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("uniq_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("uniq_id")]
|
||||
public string UniqueId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置视频号昵称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("nickname")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
|
||||
public string NickName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置粉丝数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("fans_count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("fans_count")]
|
||||
public int FansCount { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置视频号信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("finder_attr")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("finder_attr")]
|
||||
public Types.FinderAttribute FinderAttribute { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/finderlive/get_finder_live_leads_data 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsFinderLiveGetFinderLeadsDataListRequest : WechatApiRequest, IInferable<ChannelsFinderLiveGetFinderLeadsDataListRequest, ChannelsFinderLiveGetFinderLeadsDataListResponse>
|
||||
{
|
||||
/// <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("source_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("source_type")]
|
||||
public int? SourceType { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,42 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/finderlive/get_finder_live_leads_data 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsFinderLiveGetFinderLeadsDataListResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class LeadsData
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置组件类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("component_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("component_type")]
|
||||
public int ComponentType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置流量来源。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("traffic_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("traffic_type")]
|
||||
public int TrafficType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置留资条数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("leads_count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("leads_count")]
|
||||
public int LeadsCount { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置留资数据列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("item")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("item")]
|
||||
public Types.LeadsData[] LeadsDataList { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/finderlive/get_finder_live_data_list 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsFinderLiveGetFinderLiveDataListRequest : WechatApiRequest, IInferable<ChannelsFinderLiveGetFinderLiveDataListRequest, ChannelsFinderLiveGetFinderLiveDataListResponse>
|
||||
{
|
||||
/// <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("last_buffer")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("last_buffer")]
|
||||
public string? Cursor { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,112 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/finderlive/get_finder_live_data_list 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsFinderLiveGetFinderLiveDataListResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class LiveData
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置直播唯一 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("export_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("export_id")]
|
||||
public string ExportId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置开播时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("live_start_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("live_start_time")]
|
||||
public long LiveStartTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置直播时长(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("live_duration_in_seconds")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("live_duration_in_seconds")]
|
||||
public int LiveDuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置观看人数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_audience_count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_audience_count")]
|
||||
public int TotalAudienceCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置喝彩次数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_cheer_count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_cheer_count")]
|
||||
public int TotalCheerCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分享次数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("forward_count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("forward_count")]
|
||||
public int ForwardCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置评论条数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_comment_count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_comment_count")]
|
||||
public int CommentCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置人均观看时长(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audiences_avg_seconds")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audiences_avg_seconds")]
|
||||
public int AudiencesAverageSeconds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置最高在线人数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("max_online_count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("max_online_count")]
|
||||
public int MaxOnlineCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置新增粉丝数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("new_follow_count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("new_follow_count")]
|
||||
public int NewFollowCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置公众号新增粉丝数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("new_follow_count_biz")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("new_follow_count_biz")]
|
||||
public int NewFollowBusinessCount { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置直播数据列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("item")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("item")]
|
||||
public Types.LiveData[] LiveDataList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否还有更多。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("continue_flag")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("continue_flag")]
|
||||
public bool HasMore { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置翻页标记。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("last_buffer")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("last_buffer")]
|
||||
public string? NextCursor { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user