Search Results for

    Show / Hide Table of Contents

    Class CreateContactOptions

    Options for creating an email contact in address book

    Inheritance
    object
    CreateContactOptions
    Implements
    IValidatableObject
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Model
    Assembly: mailslurp.dll
    Syntax
    [DataContract(Name = "CreateContactOptions")]
    public class CreateContactOptions : IValidatableObject

    Constructors

    View Source

    CreateContactOptions(string, string, string, List<string>, List<string>, object, bool?, Guid?, bool?)

    Initializes a new instance of the CreateContactOptions class.

    Declaration
    public CreateContactOptions(string firstName = null, string lastName = null, string company = null, List<string> emailAddresses = null, List<string> tags = null, object metaData = null, bool? optOut = null, Guid? groupId = null, bool? verifyEmailAddresses = null)
    Parameters
    Type Name Description
    string firstName

    firstName.

    string lastName

    lastName.

    string company

    company.

    List<string> emailAddresses

    Set of email addresses belonging to the contact.

    List<string> tags

    Tags that can be used to search and group contacts.

    object metaData

    metaData.

    bool? optOut

    Has the user explicitly or implicitly opted out of being contacted? If so MailSlurp will ignore them in all actions..

    Guid? groupId

    Group IDs that contact belongs to.

    bool? verifyEmailAddresses

    Whether to validate contact email address exists.

    Properties

    View Source

    Company

    Gets or Sets Company

    Declaration
    [DataMember(Name = "company", EmitDefaultValue = true)]
    public string Company { get; set; }
    Property Value
    Type Description
    string
    View Source

    EmailAddresses

    Set of email addresses belonging to the contact

    Declaration
    [DataMember(Name = "emailAddresses", EmitDefaultValue = true)]
    public List<string> EmailAddresses { get; set; }
    Property Value
    Type Description
    List<string>

    Set of email addresses belonging to the contact

    View Source

    FirstName

    Gets or Sets FirstName

    Declaration
    [DataMember(Name = "firstName", EmitDefaultValue = true)]
    public string FirstName { get; set; }
    Property Value
    Type Description
    string
    View Source

    GroupId

    Group IDs that contact belongs to

    Declaration
    [DataMember(Name = "groupId", EmitDefaultValue = true)]
    public Guid? GroupId { get; set; }
    Property Value
    Type Description
    Guid?

    Group IDs that contact belongs to

    View Source

    LastName

    Gets or Sets LastName

    Declaration
    [DataMember(Name = "lastName", EmitDefaultValue = true)]
    public string LastName { get; set; }
    Property Value
    Type Description
    string
    View Source

    MetaData

    Gets or Sets MetaData

    Declaration
    [DataMember(Name = "metaData", EmitDefaultValue = true)]
    public object MetaData { get; set; }
    Property Value
    Type Description
    object
    View Source

    OptOut

    Has the user explicitly or implicitly opted out of being contacted? If so MailSlurp will ignore them in all actions.

    Declaration
    [DataMember(Name = "optOut", EmitDefaultValue = true)]
    public bool? OptOut { get; set; }
    Property Value
    Type Description
    bool?

    Has the user explicitly or implicitly opted out of being contacted? If so MailSlurp will ignore them in all actions.

    View Source

    Tags

    Tags that can be used to search and group contacts

    Declaration
    [DataMember(Name = "tags", EmitDefaultValue = true)]
    public List<string> Tags { get; set; }
    Property Value
    Type Description
    List<string>

    Tags that can be used to search and group contacts

    View Source

    VerifyEmailAddresses

    Whether to validate contact email address exists

    Declaration
    [DataMember(Name = "verifyEmailAddresses", EmitDefaultValue = true)]
    public bool? VerifyEmailAddresses { get; set; }
    Property Value
    Type Description
    bool?

    Whether to validate contact email address exists

    Methods

    View Source

    ToJson()

    Returns the JSON string presentation of the object

    Declaration
    public virtual string ToJson()
    Returns
    Type Description
    string

    JSON string presentation of the object

    View Source

    ToString()

    Returns the string presentation of the object

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    String presentation of the object

    Overrides
    object.ToString()

    Implements

    IValidatableObject
    • View Source
    In this article
    Back to top See MailSlurp website for more information.