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