Class Address
- Namespace
- Crews.PlanningCenter.Api.Calendar
- Assembly
- Crews.PlanningCenter.Api.dll
Represents a physical address for a Person resource's contact data.
[ExcludeFromCodeCoverage(Justification = "This type is a DTO with no logic to test.")]
public record Address : IEquatable<Address>
- Inheritance
-
Address
- Implements
- Inherited Members
Constructors
Address()
public Address()
Address(Address)
protected Address(Address original)
Parameters
originalAddress
Properties
City
The city of the address.
[JsonPropertyName("city")]
public string? City { get; init; }
Property Value
CountryCode
The ISO country code of the address (e.g. "US" for United States).
[JsonPropertyName("country_code")]
public string? CountryCode { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Location
The location or context of the address (e.g. "home", "work").
[JsonPropertyName("location")]
public string? Location { get; init; }
Property Value
Primary
Whether this address is the primary contact method for the person.
[JsonPropertyName("primary")]
public bool? Primary { get; init; }
Property Value
- bool?
State
The state or province of the address.
[JsonPropertyName("state")]
public string? State { get; init; }
Property Value
Street
The full street address.
[JsonPropertyName("street")]
public string? Street { get; init; }
Property Value
StreetLine1
The first line of the street address.
[JsonPropertyName("street_line_1")]
public string? StreetLine1 { get; init; }
Property Value
StreetLine2
The second line of the street address (e.g. apartment or suite number).
[JsonPropertyName("street_line_2")]
public string? StreetLine2 { get; init; }
Property Value
Zip
The postal code of the address.
[JsonPropertyName("zip")]
public string? Zip { get; init; }
Property Value
Methods
Equals(Address?)
public virtual bool Equals(Address? other)
Parameters
otherAddress
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 ==(Address?, Address?)
public static bool operator ==(Address? left, Address? right)
Parameters
Returns
operator !=(Address?, Address?)
public static bool operator !=(Address? left, Address? right)