mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-19 07:44:46 +08:00
112 lines
5.3 KiB
C#
112 lines
5.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace SKIT.FlurlHttpClient.Wechat.Ads.Models
|
|
{
|
|
/// <summary>
|
|
/// <para>表示 [GET] /custom_audiences/get 接口的响应。</para>
|
|
/// </summary>
|
|
public class CustomAudiencesGetResponse : WechatAdsResponse
|
|
{
|
|
public static class Types
|
|
{
|
|
public class Data
|
|
{
|
|
public static class Types
|
|
{
|
|
public class CustomAudience
|
|
{
|
|
/// <summary>
|
|
/// 获取或设置自定义人群 ID。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("audience_id")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("audience_id")]
|
|
public int CustomAudienceId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置自定义人群名称。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("name")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
|
public string CustomAudienceName { get; set; } = default!;
|
|
|
|
/// <summary>
|
|
/// 获取或设置自定义人群类型。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("type")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("type")]
|
|
public string CustomAudienceType { get; set; } = default!;
|
|
|
|
/// <summary>
|
|
/// 获取或设置自定义人群描述。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("description")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
|
public string CustomAudienceDescription { get; set; } = default!;
|
|
|
|
/// <summary>
|
|
/// 获取或设置处理状态。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("status")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
|
public string Status { get; set; } = default!;
|
|
|
|
/// <summary>
|
|
/// 获取或设置错误码。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("error_code")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("error_code")]
|
|
public int ErrorCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置用户覆盖数。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("user_count")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("user_count")]
|
|
public int UserCount { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置最近修改时间戳。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("last_modified_time")]
|
|
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RegularDateTimeOffsetConverter))]
|
|
[System.Text.Json.Serialization.JsonPropertyName("last_modified_time")]
|
|
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RegularDateTimeOffsetConverter))]
|
|
public DateTimeOffset UpdateTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置创建时间戳。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("created_time")]
|
|
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RegularDateTimeOffsetConverter))]
|
|
[System.Text.Json.Serialization.JsonPropertyName("created_time")]
|
|
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RegularDateTimeOffsetConverter))]
|
|
public DateTimeOffset CreateTime { get; set; }
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取或设置自定义人群列表。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("list")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("list")]
|
|
public Types.CustomAudience[] CustomAudienceList { get; set; } = default!;
|
|
|
|
/// <summary>
|
|
/// 获取或设置分页信息。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("page_info")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("page_info")]
|
|
public Abstractions.CommonPagination Pagination { get; set; } = default!;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取或设置返回数据。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("data")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("data")]
|
|
public Types.Data Data { get; set; } = default!;
|
|
}
|
|
}
|