-
Notifications
You must be signed in to change notification settings - Fork 584
/
Copy pathBCCSettings.cs
44 lines (41 loc) · 1.33 KB
/
BCCSettings.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// <copyright file="BCCSettings.cs" company="Twilio SendGrid">
// Copyright (c) Twilio SendGrid. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// </copyright>
#if NETSTANDARD2_0
using System.Text.Json.Serialization;
#else
using Newtonsoft.Json;
#endif
namespace SendGrid.Helpers.Mail
{
/// <summary>
/// Gets or sets the address specified in the mail_settings.bcc object will receive a blind carbon copy (BCC) of the very first personalization defined in the personalizations array.
/// </summary>
#if NETSTANDARD2_0
// Globally defined by setting ReferenceHandler on the JsonSerializerOptions object
#else
[JsonObject(IsReference = false)]
#endif
public class BCCSettings
{
/// <summary>
/// Gets or sets a value indicating whether this setting is enabled.
/// </summary>
#if NETSTANDARD2_0
[JsonPropertyName("enable")]
#else
[JsonProperty(PropertyName = "enable")]
#endif
public bool? Enable { get; set; }
/// <summary>
/// Gets or sets the email address that you would like to receive the BCC.
/// </summary>
#if NETSTANDARD2_0
[JsonPropertyName("email")]
#else
[JsonProperty(PropertyName = "email")]
#endif
public string Email { get; set; }
}
}