Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestContactExport" /> class.
 /// </summary>
 /// <param name="exportAttributes">List of all the attributes that you want to export. These attributes must be present in your contact database. For example, [&#39;fname&#39;, &#39;lname&#39;, &#39;email&#39;]..</param>
 /// <param name="contactFilter">This attribute has been deprecated and will be removed by January 1st, 2021. Only one of the two filter options (contactFilter or customContactFilter) can be passed in the request. Set the filter for the contacts to be exported. For example, {&quot;blacklisted&quot;:true} will export all the blacklisted contacts. .</param>
 /// <param name="customContactFilter">customContactFilter.</param>
 /// <param name="notifyUrl">Webhook that will be called once the export process is finished.</param>
 public RequestContactExport(List <string> exportAttributes = default(List <string>), Object contactFilter = default(Object), RequestContactExportCustomContactFilter customContactFilter = default(RequestContactExportCustomContactFilter), string notifyUrl = default(string))
 {
     this.ExportAttributes    = exportAttributes;
     this.ContactFilter       = contactFilter;
     this.CustomContactFilter = customContactFilter;
     this.NotifyUrl           = notifyUrl;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestContactExport" /> class.
 /// </summary>
 /// <param name="exportAttributes">List of all the attributes that you want to export. These attributes must be present in your contact database. For example, [&#39;fname&#39;, &#39;lname&#39;, &#39;email&#39;]..</param>
 /// <param name="customContactFilter">customContactFilter (required).</param>
 /// <param name="notifyUrl">Webhook that will be called once the export process is finished. For reference, https://help.sendinblue.com/hc/en-us/articles/360007666479.</param>
 public RequestContactExport(List <string> exportAttributes = default(List <string>), RequestContactExportCustomContactFilter customContactFilter = default(RequestContactExportCustomContactFilter), string notifyUrl = default(string))
 {
     // to ensure "customContactFilter" is required (not null)
     if (customContactFilter == null)
     {
         throw new InvalidDataException("customContactFilter is a required property for RequestContactExport and cannot be null");
     }
     else
     {
         this.CustomContactFilter = customContactFilter;
     }
     this.ExportAttributes = exportAttributes;
     this.NotifyUrl        = notifyUrl;
 }