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
originalEmailAddress
Properties
Address
The email address.
[JsonPropertyName("address")]
public string? Address { get; init; }
Property Value
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
Location
The location or context of the email address (e.g. "home", "work").
[JsonPropertyName("location")]
public string? Location { get; init; }
Property Value
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
otherEmailAddress
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(EmailAddress?, EmailAddress?)
public static bool operator ==(EmailAddress? left, EmailAddress? right)
Parameters
leftEmailAddressrightEmailAddress
Returns
operator !=(EmailAddress?, EmailAddress?)
public static bool operator !=(EmailAddress? left, EmailAddress? right)
Parameters
leftEmailAddressrightEmailAddress