Files
DotNetCore.SKIT.FlurlHttpCl…/src/SKIT.FlurlHttpClient.Wechat.Ads/WechatAdsClientOptions.cs
2021-09-23 19:59:42 +08:00

36 lines
1.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.
namespace SKIT.FlurlHttpClient.Wechat.Ads
{
/// <summary>
/// 一个用于构造 <see cref="WechatAdsClient"/> 时使用的配置项。
/// </summary>
public class WechatAdsClientOptions
{
/// <summary>
/// 获取或设置请求超时时间(单位:毫秒)。
/// <para>默认值30000</para>
/// </summary>
public int Timeout { get; set; } = 30 * 1000;
/// <summary>
/// 获取或设置微信广告平台 API 域名。
/// <para>默认值:<see cref="WechatAdsEndpoints.DEFAULT"/></para>
/// </summary>
public string Endpoints { get; set; } = WechatAdsEndpoints.DEFAULT;
/// <summary>
/// 获取或设置微信广告平台服务商 ID。
/// </summary>
public string AgencyId { get; set; } = default!;
/// <summary>
/// 获取或设置微信广告平台服务商 AppId。
/// </summary>
public string AgencyAppId { get; set; } = default!;
/// <summary>
/// 获取或设置微信广告平台服务商 ApiKey。
/// </summary>
public string AgencyApiKey { get; set; } = default!;
}
}