@@ -72,152 +72,15 @@ public class SingleSend
7272 public DateTime ? CreatedOn { get ; set ; }
7373
7474 /// <summary>
75- /// Gets or sets the subject .
75+ /// Gets or sets the configuration about the email that will be sent to the recipients .
7676 /// </summary>
77- /// <value>
78- /// The subject.
79- /// </value>
80- [ JsonIgnore ]
81- public string Subject
82- {
83- get => EmailConfig . Subject ;
84- set => EmailConfig . Subject = value ;
85- }
86-
87- /// <summary>
88- /// Gets or sets the HTML content.
89- /// </summary>
90- /// <value>
91- /// The HTML content.
92- /// </value>
93- [ JsonIgnore ]
94- public string HtmlContent
95- {
96- get => EmailConfig . HtmlContent ;
97- set => EmailConfig . HtmlContent = value ;
98- }
99-
100- /// <summary>
101- /// Gets or sets the plain text content.
102- /// </summary>
103- /// <value>
104- /// The plain text content.
105- /// </value>
106- [ JsonIgnore ]
107- public string TextContent
108- {
109- get => EmailConfig . TextContent ;
110- set => EmailConfig . TextContent = value ;
111- }
112-
113- /// <summary>
114- /// Gets or sets a value indicating whether the plain content should be generated.
115- /// </summary>
116- /// <value>
117- /// The generate_plain_content.
118- /// </value>
119- [ JsonIgnore ]
120- public bool GeneratePlainContent
121- {
122- get => EmailConfig . GeneratePlainContent ;
123- set => EmailConfig . GeneratePlainContent = value ;
124- }
125-
126- /// <summary>
127- /// Gets or sets the type of editor used in the UI.
128- /// </summary>
129- /// <value>
130- /// The type of editor.
131- /// </value>
132- [ JsonIgnore ]
133- public EditorType EditorType
134- {
135- get => EmailConfig . EditorType ;
136- set => EmailConfig . EditorType = value ;
137- }
138-
139- /// <summary>
140- /// Gets or sets the sender identifier.
141- /// </summary>
142- /// <value>
143- /// The sender identifier.
144- /// </value>
145- [ JsonIgnore ]
146- public long SenderId
147- {
148- get => EmailConfig . SenderId ;
149- set => EmailConfig . SenderId = value ;
150- }
151-
152- /// <summary>
153- /// Gets or sets the custom unsubscribe URL.
154- /// </summary>
155- /// <value>
156- /// The custom unsubscribe URL.
157- /// </value>
158- [ JsonIgnore ]
159- public string CustomUnsubscribeUrl
160- {
161- get => EmailConfig . CustomUnsubscribeUrl ;
162- set => EmailConfig . CustomUnsubscribeUrl = value ;
163- }
164-
165- /// <summary>
166- /// Gets or sets the suppression group identifier.
167- /// </summary>
168- /// <value>
169- /// The suppression group identifier.
170- /// </value>
171- [ JsonIgnore ]
172- public long ? SuppressionGroupId
173- {
174- get => EmailConfig . SuppressionGroupId ;
175- set => EmailConfig . SuppressionGroupId = value ;
176- }
177-
178- /// <summary>
179- /// Gets or sets the ip pool.
180- /// </summary>
181- /// <value>
182- /// The ip pool.
183- /// </value>
184- [ JsonIgnore ]
185- public string IpPool
186- {
187- get => EmailConfig . IpPool ;
188- set => EmailConfig . IpPool = value ;
189- }
190-
191- /// <summary>
192- /// Gets or sets the lists.
193- /// </summary>
194- /// <value>
195- /// The lists.
196- /// </value>
197- [ JsonIgnore ]
198- public string [ ] Lists
199- {
200- get => SendTo . Lists ;
201- set => SendTo . Lists = value ;
202- }
77+ [ JsonPropertyName ( "email_config" ) ]
78+ public SingleSendEmailConfig EmailConfig { get ; set ; }
20379
20480 /// <summary>
205- /// Gets or sets the segments .
81+ /// Gets or sets the information about who will receive this Single Send .
20682 /// </summary>
207- /// <value>
208- /// The segments.
209- /// </value>
210- [ JsonIgnore ]
211- public string [ ] Segments
212- {
213- get => SendTo . Segments ;
214- set => SendTo . Segments = value ;
215- }
216-
217- [ JsonPropertyName ( "email_config" ) ]
218- private SingleSendEmailConfig EmailConfig { get ; set ; }
219-
22083 [ JsonPropertyName ( "send_to" ) ]
221- private SingleSendSendTo SendTo { get ; set ; }
84+ public SingleSendRecipients Recipients { get ; set ; }
22285 }
22386}
0 commit comments