Search Results for

    Show / Hide Table of Contents

    Class ContactDto

    Contact object. For saving a user in contact book.

    Inheritance
    object
    ContactDto
    Implements
    IEquatable<ContactDto>
    System.ComponentModel.DataAnnotations.IValidatableObject
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Model
    Assembly: mailslurp.dll
    Syntax
    [DataContract(Name = "ContactDto")]
    public class ContactDto : IEquatable<ContactDto>, IValidatableObject

    Constructors

    View Source

    ContactDto()

    Initializes a new instance of the ContactDto class.

    Declaration
    [JsonConstructor]
    protected ContactDto()
    View Source

    ContactDto(Guid, Guid?, string, string, string, List<string>, string, List<string>, object, bool?, DateTime)

    Initializes a new instance of the ContactDto class.

    Declaration
    public ContactDto(Guid id = default, Guid? groupId = null, string firstName = null, string lastName = null, string company = null, List<string> emailAddresses = null, string primaryEmailAddress = null, List<string> tags = null, object metaData = null, bool? optOut = null, DateTime createdAt = default)
    Parameters
    Type Name Description
    System.Guid id

    id (required).

    System.Guid? groupId

    groupId.

    string firstName

    firstName.

    string lastName

    lastName.

    string company

    company.

    System.Collections.Generic.List<T><string> emailAddresses

    emailAddresses (required).

    string primaryEmailAddress

    primaryEmailAddress.

    System.Collections.Generic.List<T><string> tags

    tags (required).

    object metaData

    metaData.

    bool? optOut

    optOut.

    DateTime createdAt

    createdAt (required).

    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

    CreatedAt

    Gets or Sets CreatedAt

    Declaration
    [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
    public DateTime CreatedAt { get; set; }
    Property Value
    Type Description
    DateTime
    View Source

    EmailAddresses

    Gets or Sets EmailAddresses

    Declaration
    [DataMember(Name = "emailAddresses", IsRequired = true, EmitDefaultValue = true)]
    public List<string> EmailAddresses { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<T><string>
    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

    Gets or Sets GroupId

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

    Id

    Gets or Sets Id

    Declaration
    [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
    public Guid Id { get; set; }
    Property Value
    Type Description
    System.Guid
    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

    Gets or Sets OptOut

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

    PrimaryEmailAddress

    Gets or Sets PrimaryEmailAddress

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

    Tags

    Gets or Sets Tags

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

    Methods

    View Source

    Equals(ContactDto)

    Returns true if ContactDto instances are equal

    Declaration
    public bool Equals(ContactDto input)
    Parameters
    Type Name Description
    ContactDto input

    Instance of ContactDto to be compared

    Returns
    Type Description
    bool

    Boolean

    View Source

    Equals(object)

    Returns true if objects are equal

    Declaration
    public override bool Equals(object input)
    Parameters
    Type Name Description
    object input

    Object to be compared

    Returns
    Type Description
    bool

    Boolean

    Overrides
    Object.Equals(Object)
    View Source

    GetHashCode()

    Gets the hash code

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Hash code

    Overrides
    Object.GetHashCode()
    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()
    View Source

    Validate(ValidationContext)

    To validate all properties of the instance

    Declaration
    public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
    Parameters
    Type Name Description
    ValidationContext validationContext

    Validation context

    Returns
    Type Description
    IEnumerable<ValidationResult>

    Validation Result

    Implements

    System.IEquatable<T>
    System.ComponentModel.DataAnnotations.IValidatableObject
    • View Source
    In This Article
    Back to top See MailSlurp website for more information.