示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContactPayload" /> class.
 /// </summary>
 /// <param name="email">Proper email address..</param>
 /// <param name="status">Status of the given resource.</param>
 /// <param name="firstName">First name..</param>
 /// <param name="lastName">Last name..</param>
 /// <param name="customFields">A key-value collection of custom contact fields which can be used in the system. Only already existing custom fields will be saved..</param>
 /// <param name="consent">consent.</param>
 public ContactPayload(string email = default(string), ContactStatus?status = default(ContactStatus?), string firstName = default(string), string lastName = default(string), Dictionary <string, string> customFields = default(Dictionary <string, string>), ConsentData consent = default(ConsentData))
 {
     this.Email        = email;
     this.Status       = status;
     this.FirstName    = firstName;
     this.LastName     = lastName;
     this.CustomFields = customFields;
     this.Consent      = consent;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Contact" /> class.
 /// </summary>
 /// <param name="email">Proper email address..</param>
 /// <param name="status">Status of the given resource.</param>
 /// <param name="firstName">First name..</param>
 /// <param name="lastName">Last name..</param>
 /// <param name="customFields">A key-value collection of custom contact fields which can be used in the system..</param>
 /// <param name="consent">consent.</param>
 /// <param name="source">From where was this contact added.</param>
 /// <param name="dateAdded">Date of creation in YYYY-MM-DDThh:ii:ss format.</param>
 /// <param name="dateUpdated">Last change date.</param>
 /// <param name="statusChangeDate">Date of last status change..</param>
 /// <param name="activity">Contact&#39;s email statistics and activity.</param>
 public Contact(string email = default(string), ContactStatus?status = default(ContactStatus?), string firstName = default(string), string lastName = default(string), Dictionary <string, string> customFields = default(Dictionary <string, string>), ConsentData consent = default(ConsentData), ContactSource?source = default(ContactSource?), DateTime dateAdded = default(DateTime), DateTime?dateUpdated = default(DateTime?), DateTime?statusChangeDate = default(DateTime?), ContactActivity activity = default(ContactActivity))
 {
     this.Email            = email;
     this.Status           = status;
     this.FirstName        = firstName;
     this.LastName         = lastName;
     this.CustomFields     = customFields;
     this.Consent          = consent;
     this.Source           = source;
     this.DateAdded        = dateAdded;
     this.DateUpdated      = dateUpdated;
     this.StatusChangeDate = statusChangeDate;
     this.Activity         = activity;
 }