Class ContactProjection
Email contact for address book
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "ContactProjection")]
public class ContactProjection : IValidatableObjectConstructors
View SourceContactProjection()
Initializes a new instance of the ContactProjection class.
Declaration
[JsonConstructor]
protected ContactProjection()ContactProjection(string, DateTime, List<string>, string, string, string, bool?, Guid, Guid?)
Initializes a new instance of the ContactProjection class.
Declaration
public ContactProjection(string emailAddress = null, DateTime createdAt = default, List<string> emailAddresses = null, string firstName = null, string lastName = null, string company = null, bool? optOut = null, Guid id = default, Guid? groupId = null)Parameters
| Type | Name | Description | 
|---|---|---|
| string | emailAddress | emailAddress. | 
| DateTime | createdAt | createdAt (required). | 
| List<string> | emailAddresses | emailAddresses. | 
| string | firstName | firstName. | 
| string | lastName | lastName. | 
| string | company | company. | 
| bool? | optOut | optOut. | 
| Guid | id | id (required). | 
| Guid? | groupId | groupId. | 
Properties
View SourceCompany
Gets or Sets Company
Declaration
[DataMember(Name = "company", EmitDefaultValue = true)]
public string Company { get; set; }Property Value
| Type | Description | 
|---|---|
| string | 
CreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }Property Value
| Type | Description | 
|---|---|
| DateTime | 
EmailAddress
Gets or Sets EmailAddress
Declaration
[DataMember(Name = "emailAddress", EmitDefaultValue = true)]
public string EmailAddress { get; set; }Property Value
| Type | Description | 
|---|---|
| string | 
EmailAddresses
Gets or Sets EmailAddresses
Declaration
[DataMember(Name = "emailAddresses", EmitDefaultValue = true)]
public List<string> EmailAddresses { get; set; }Property Value
| Type | Description | 
|---|---|
| List<string> | 
FirstName
Gets or Sets FirstName
Declaration
[DataMember(Name = "firstName", EmitDefaultValue = true)]
public string FirstName { get; set; }Property Value
| Type | Description | 
|---|---|
| string | 
GroupId
Gets or Sets GroupId
Declaration
[DataMember(Name = "groupId", EmitDefaultValue = true)]
public Guid? GroupId { get; set; }Property Value
| Type | Description | 
|---|---|
| Guid? | 
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }Property Value
| Type | Description | 
|---|---|
| Guid | 
LastName
Gets or Sets LastName
Declaration
[DataMember(Name = "lastName", EmitDefaultValue = true)]
public string LastName { get; set; }Property Value
| Type | Description | 
|---|---|
| string | 
OptOut
Gets or Sets OptOut
Declaration
[DataMember(Name = "optOut", EmitDefaultValue = true)]
public bool? OptOut { get; set; }Property Value
| Type | Description | 
|---|---|
| bool? | 
Methods
View SourceToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()Returns
| Type | Description | 
|---|---|
| string | JSON string presentation of the object | 
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()Returns
| Type | Description | 
|---|---|
| string | String presentation of the object |