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
originalAgeCounts
Properties
Age0To3
Age range 0-3 years.
[JsonPropertyName("0-3")]
public required GenderCounts Age0To3 { get; init; }
Property Value
Age12To18
Age range 12-18 years.
[JsonPropertyName("12-18")]
public required GenderCounts Age12To18 { get; init; }
Property Value
Age19To25
Age range 19-25 years.
[JsonPropertyName("19-25")]
public required GenderCounts Age19To25 { get; init; }
Property Value
Age26To35
Age range 26-35 years.
[JsonPropertyName("26-35")]
public required GenderCounts Age26To35 { get; init; }
Property Value
Age36To50
Age range 36-50 years.
[JsonPropertyName("36-50")]
public required GenderCounts Age36To50 { get; init; }
Property Value
Age4To11
Age range 4-11 years.
[JsonPropertyName("4-11")]
public required GenderCounts Age4To11 { get; init; }
Property Value
Age51To64
Age range 51-64 years.
[JsonPropertyName("51-64")]
public required GenderCounts Age51To64 { get; init; }
Property Value
Age65Plus
Age range 65+ years.
[JsonPropertyName("65+")]
public required GenderCounts Age65Plus { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Methods
Equals(AgeCounts?)
public virtual bool Equals(AgeCounts? other)
Parameters
otherAgeCounts
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 ==(AgeCounts?, AgeCounts?)
public static bool operator ==(AgeCounts? left, AgeCounts? right)
Parameters
Returns
operator !=(AgeCounts?, AgeCounts?)
public static bool operator !=(AgeCounts? left, AgeCounts? right)