Class GenderCounts
- Namespace
- Crews.PlanningCenter.Api.People
- Assembly
- Crews.PlanningCenter.Api.dll
Represents people counts by gender.
[ExcludeFromCodeCoverage(Justification = "This type is a DTO with no logic to test.")]
public record GenderCounts : IEquatable<GenderCounts>
- Inheritance
-
GenderCounts
- Implements
- Inherited Members
Constructors
GenderCounts()
public GenderCounts()
GenderCounts(GenderCounts)
protected GenderCounts(GenderCounts original)
Parameters
originalGenderCounts
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Female
Count of female individuals.
[JsonPropertyName("female")]
public int Female { get; init; }
Property Value
Male
Count of male individuals.
[JsonPropertyName("male")]
public int Male { get; init; }
Property Value
Unassigned
Count of individuals with unassigned gender.
[JsonPropertyName("unassigned")]
public int Unassigned { get; init; }
Property Value
Methods
Equals(GenderCounts?)
public virtual bool Equals(GenderCounts? other)
Parameters
otherGenderCounts
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 ==(GenderCounts?, GenderCounts?)
public static bool operator ==(GenderCounts? left, GenderCounts? right)
Parameters
leftGenderCountsrightGenderCounts
Returns
operator !=(GenderCounts?, GenderCounts?)
public static bool operator !=(GenderCounts? left, GenderCounts? right)
Parameters
leftGenderCountsrightGenderCounts