Files
g.hnyhua.cn/Jiguang.JPush/Model/Audience.cs
2026-02-07 15:48:27 +08:00

62 lines
2.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Jiguang.JPush.Model
{
/// <summary>
/// 推送目标。
/// <see cref="https://docs.jiguang.cn/jpush/server/push/rest_api_v3_push/#audience"/>
/// </summary>
public class Audience
{
/// <summary>
/// 多个标签之间取并集OR
/// 每次最多推送 20 个。
/// </summary>
[JsonProperty("tag", NullValueHandling = NullValueHandling.Ignore)]
public List<string> Tag { get; set; }
/// <summary>
/// 多个标签之间取交集AND
/// 每次最多推送 20 个。
/// </summary>
[JsonProperty("tag_and", NullValueHandling = NullValueHandling.Ignore)]
public List<string> TagAnd { get; set; }
/// <summary>
/// 多个标签之间,先取并集,再对结果取补集。
/// 每次最多推送 20 个。
/// </summary>
[JsonProperty("tag_not", NullValueHandling = NullValueHandling.Ignore)]
public List<string> TagNot { get; set; }
/// <summary>
/// 多个别名之间取并集OR
/// 每次最多同时推送 1000 个。
/// </summary>
[JsonProperty("alias", NullValueHandling = NullValueHandling.Ignore)]
public List<string> Alias { get; set; }
/// <summary>
/// 多个 registration id 之间取并集OR
/// 每次最多同时推送 1000 个。
/// </summary>
[JsonProperty("registration_id", NullValueHandling = NullValueHandling.Ignore)]
public List<string> RegistrationId { get; set; }
/// <summary>
/// 在页面创建的用户分群 ID。
/// 目前一次只能推送一个。
/// </summary>
[JsonProperty("segment", NullValueHandling = NullValueHandling.Ignore)]
public List<string> Segment { get; set; }
/// <summary>
/// 在页面创建的 A/B 测试 ID。
/// 目前一次只能推送一个。
/// </summary>
[JsonProperty("abtest", NullValueHandling = NullValueHandling.Ignore)]
public List<string> Abtest { get; set; }
}
}