Table of Contents

Class BirthdayPerson

Namespace
Crews.PlanningCenter.Api.People
Assembly
Crews.PlanningCenter.Api.dll

Represents the details of a person's birth date.

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

Constructors

BirthdayPerson()

public BirthdayPerson()

BirthdayPerson(BirthdayPerson)

[SetsRequiredMembers]
protected BirthdayPerson(BirthdayPerson original)

Parameters

original BirthdayPerson

Properties

Avatar

The URL of the person's avatar image.

[JsonPropertyName("avatar")]
public required string Avatar { get; init; }

Property Value

string

Birthdate

The birthdate of the person.

[JsonPropertyName("birthdate")]
public DateOnly Birthdate { get; init; }

Property Value

DateOnly

Child

Indicates whether the person is a child.

[JsonPropertyName("child")]
public bool Child { get; init; }

Property Value

bool

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Id

The unique identifier of the person.

[JsonPropertyName("id")]
[JsonConverter(typeof(StringFromNumberConverter))]
public required string Id { get; init; }

Property Value

string

Name

The name of the person.

[JsonPropertyName("name")]
public required string Name { get; init; }

Property Value

string

Methods

Equals(BirthdayPerson?)

public virtual bool Equals(BirthdayPerson? other)

Parameters

other BirthdayPerson

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

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

Parameters

left BirthdayPerson
right BirthdayPerson

Returns

bool

operator !=(BirthdayPerson?, BirthdayPerson?)

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

Parameters

left BirthdayPerson
right BirthdayPerson

Returns

bool