/// <summary>
 /// Initializes a new instance of the <see cref="GetContactsByEmailBatchQuery"/> class.
 ///   </summary>
 /// <param name="props">
 ///     By default, all valued properties will be included. If you include the "property" parameter,
 ///     then the returned data will only include the property or properties that you request. You can
 ///     include this parameter multiple times to specify multiple properties. The lastmodifieddate and
 ///     associatedcompanyid will always be included, even if not specified. Keep in mind that only
 ///     properties that have a value will be included in the response, even if specified in the URL.</param>
 /// <param name="propertyMode">
 ///     One of “value_only” or “value_and_history” to specify if the current value for a property
 ///     should be fetched, or the value and all the historical values for that property. Default
 ///     is “value_and_history”.
 /// </param>
 /// <param name="formSubmissionMode">
 ///     One of “all,” “none,” “newest,” “oldest” to specify which form submissions should be fetched.
 ///     Default is “all.”
 /// </param>
 /// <param name="showListMemberships">
 ///     Boolean "true" or "false" to indicate whether current list memberships should be fetched for the contact.
 ///     Default is true.
 /// </param>
 public GetContactsByEmailBatchQuery(string[] props, PropertyMode propertyMode = PropertyMode.value_and_history, FormSubmissionMode formSubmissionMode = ModelEnums.FormSubmissionMode.all, bool showListMemberships = true)
 {
     this.Properties          = props;
     this.PropertyMode        = propertyMode;
     this.FormSubmissionMode  = formSubmissionMode.ToString();
     this.ShowListMemberships = showListMemberships;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetContactQuery"/> class.
 ///   </summary>
 /// <param name="props">
 ///     By default, all valued properties will be included. If you include the "property" parameter,
 ///     then the returned data will only include the property or properties that you request. You can
 ///     include this parameter multiple times to specify multiple properties. The lastmodifieddate and
 ///     associatedcompanyid will always be included, even if not specified. Keep in mind that only
 ///     properties that have a value will be included in the response, even if specified in the URL.</param>
 /// <param name="propertyMode">
 ///     One of “value_only” or “value_and_history” to specify if the current value for a property
 ///     should be fetched, or the value and all the historical values for that property. Default
 ///     is “value_and_history”.
 /// </param>
 /// <param name="formSubmissionMode">
 ///     One of “all,” “none,” “newest,” “oldest” to specify which form submissions should be fetched.
 ///     Default is “all.”
 /// </param>
 /// <param name="showListMemberships">
 ///     Boolean "true" or "false" to indicate whether current list memberships should be fetched for the contact.
 ///     Default is true.
 /// </param>
 public GetContactQuery(string[] props, PropertyMode propertyMode = PropertyMode.value_and_history, FormSubmissionMode formSubmissionMode = FormSubmissionMode.all, bool showListMemberships = true)
 {
     this.properties          = props;
     this.propertyMode        = propertyMode.ToString();
     this.formSubmissionMode  = formSubmissionMode.ToString();
     this.showListMemberships = showListMemberships;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetAllContactsQuery"/> class.
 /// </summary>
 /// <param name="count">The number of records to receive default is 20, max is 100.</param>
 /// <param name="vidOffset">The vid offset of the previous call if any.  This will return a new "page" of contacts.</param>
 /// <param name="property">The names of the properties to return in the response.</param>
 /// <param name="propertyMode">Determines whether the history of the properties are returned along with the values or just the values.</param>
 /// <param name="formSubmissionMode">Designates which form submission should be fetched.  The default is "newest".</param>
 /// <param name="showListMemberships">Indicates whether or not the response will contain all list memberships for each contact.</param>
 public GetAllContactsQuery(
     int count                             = 20,
     int vidOffset                         = 0,
     string[] property                     = null,
     PropertyMode propertyMode             = PropertyMode.value_and_history,
     FormSubmissionMode formSubmissionMode = ContactsApi.ModelEnums.FormSubmissionMode.all,
     bool showListMemberships              = true)
 {
     this.Count               = count.ToString();
     this.VidOffset           = vidOffset;
     this.Property            = property;
     this.PropertyMode        = propertyMode;
     this.FormSubmissionMode  = formSubmissionMode.ToString();
     this.ShowListMemberships = showListMemberships;
 }