Table of Contents

Class PhoneNumber

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

Represents a phone number for a Person resource's contact data.

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

Constructors

PhoneNumber()

public PhoneNumber()

PhoneNumber(PhoneNumber)

protected PhoneNumber(PhoneNumber original)

Parameters

original PhoneNumber

Properties

Carrier

The carrier for a mobile phone number.

[JsonPropertyName("carrier")]
public string? Carrier { get; init; }

Property Value

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Location

The location or context of the phone number (e.g. "home", "work", "mobile").

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

Property Value

string

Number

The phone number.

[JsonPropertyName("number")]
public string? Number { get; init; }

Property Value

string

Primary

Whether this phone number is the primary contact method for the person.

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

Property Value

bool?

Methods

Equals(PhoneNumber?)

public virtual bool Equals(PhoneNumber? other)

Parameters

other PhoneNumber

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 ==(PhoneNumber?, PhoneNumber?)

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

Parameters

left PhoneNumber
right PhoneNumber

Returns

bool

operator !=(PhoneNumber?, PhoneNumber?)

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

Parameters

left PhoneNumber
right PhoneNumber

Returns

bool