Table of Contents

Class AgeCounts

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

Represents people counts by age ranges, further divided by gender.

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

Constructors

AgeCounts()

public AgeCounts()

AgeCounts(AgeCounts)

[SetsRequiredMembers]
protected AgeCounts(AgeCounts original)

Parameters

original AgeCounts

Properties

Age0To3

Age range 0-3 years.

[JsonPropertyName("0-3")]
public required GenderCounts Age0To3 { get; init; }

Property Value

GenderCounts

Age12To18

Age range 12-18 years.

[JsonPropertyName("12-18")]
public required GenderCounts Age12To18 { get; init; }

Property Value

GenderCounts

Age19To25

Age range 19-25 years.

[JsonPropertyName("19-25")]
public required GenderCounts Age19To25 { get; init; }

Property Value

GenderCounts

Age26To35

Age range 26-35 years.

[JsonPropertyName("26-35")]
public required GenderCounts Age26To35 { get; init; }

Property Value

GenderCounts

Age36To50

Age range 36-50 years.

[JsonPropertyName("36-50")]
public required GenderCounts Age36To50 { get; init; }

Property Value

GenderCounts

Age4To11

Age range 4-11 years.

[JsonPropertyName("4-11")]
public required GenderCounts Age4To11 { get; init; }

Property Value

GenderCounts

Age51To64

Age range 51-64 years.

[JsonPropertyName("51-64")]
public required GenderCounts Age51To64 { get; init; }

Property Value

GenderCounts

Age65Plus

Age range 65+ years.

[JsonPropertyName("65+")]
public required GenderCounts Age65Plus { get; init; }

Property Value

GenderCounts

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Methods

Equals(AgeCounts?)

public virtual bool Equals(AgeCounts? other)

Parameters

other AgeCounts

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

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

Parameters

left AgeCounts
right AgeCounts

Returns

bool

operator !=(AgeCounts?, AgeCounts?)

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

Parameters

left AgeCounts
right AgeCounts

Returns

bool