Table of Contents

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

original GenderCounts

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Female

Count of female individuals.

[JsonPropertyName("female")]
public int Female { get; init; }

Property Value

int

Male

Count of male individuals.

[JsonPropertyName("male")]
public int Male { get; init; }

Property Value

int

Unassigned

Count of individuals with unassigned gender.

[JsonPropertyName("unassigned")]
public int Unassigned { get; init; }

Property Value

int

Methods

Equals(GenderCounts?)

public virtual bool Equals(GenderCounts? other)

Parameters

other GenderCounts

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

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

Parameters

left GenderCounts
right GenderCounts

Returns

bool

operator !=(GenderCounts?, GenderCounts?)

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

Parameters

left GenderCounts
right GenderCounts

Returns

bool