Table of Contents

Class EmailAddress

Namespace
Crews.PlanningCenter.Api.Calendar
Assembly
Crews.PlanningCenter.Api.dll

Represents an email address for a Person resource's contact data.

[ExcludeFromCodeCoverage(Justification = "This type is a DTO with no logic to test.")]
public record EmailAddress : IEquatable<EmailAddress>
Inheritance
EmailAddress
Implements
Inherited Members

Constructors

EmailAddress()

public EmailAddress()

EmailAddress(EmailAddress)

protected EmailAddress(EmailAddress original)

Parameters

original EmailAddress

Properties

Address

The email address.

[JsonPropertyName("address")]
public string? Address { get; init; }

Property Value

string

Blocked

Whether this email address is blocked.

[JsonPropertyName("blocked")]
public bool? Blocked { get; init; }

Property Value

bool?

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Location

The location or context of the email address (e.g. "home", "work").

[JsonPropertyName("location")]
public string? Location { get; init; }

Property Value

string

Primary

Whether this email address is the primary contact method for the person.

[JsonPropertyName("primary")]
public bool? Primary { get; init; }

Property Value

bool?

Methods

Equals(EmailAddress?)

public virtual bool Equals(EmailAddress? other)

Parameters

other EmailAddress

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(EmailAddress?, EmailAddress?)

public static bool operator ==(EmailAddress? left, EmailAddress? right)

Parameters

left EmailAddress
right EmailAddress

Returns

bool

operator !=(EmailAddress?, EmailAddress?)

public static bool operator !=(EmailAddress? left, EmailAddress? right)

Parameters

left EmailAddress
right EmailAddress

Returns

bool