Table of Contents

Class OrganizationStatistics

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

Attributes for the OrganizationStatistics resource.

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

Constructors

OrganizationStatistics()

public OrganizationStatistics()

OrganizationStatistics(OrganizationStatistics)

[SetsRequiredMembers]
protected OrganizationStatistics(OrganizationStatistics original)

Parameters

original OrganizationStatistics

Properties

Age

People counts by age range, each then divided by gender.

[JsonPropertyName("age")]
public required AgeCounts Age { get; init; }

Property Value

AgeCounts

Campuses

People counts by campus.

[JsonPropertyName("campuses")]
public IEnumerable<CampusCount> Campuses { get; init; }

Property Value

IEnumerable<CampusCount>

CreatedLast30Days

Number of people created in the last 30 days.

[JsonPropertyName("created_last_30_days")]
public int CreatedLast30Days { get; init; }

Property Value

int

ElasticSearch

Planning Center does not provide a description for this attribute.

[JsonPropertyName("elasticsearch")]
public bool ElasticSearch { get; init; }

Property Value

bool

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Gender

People counts by gender.

[JsonPropertyName("gender")]
public required GenderCounts Gender { get; init; }

Property Value

GenderCounts

GenderIds

Unique identifiers for each gender reused across the organization.

[JsonPropertyName("gender_ids")]
public required GenderIds GenderIds { get; init; }

Property Value

GenderIds

Membership

Membership counts by type.

[JsonPropertyName("membership")]
public IEnumerable<MembershipCount> Membership { get; init; }

Property Value

IEnumerable<MembershipCount>

Total

Total number of people in the organization.

[JsonPropertyName("total")]
public int Total { get; init; }

Property Value

int

Methods

Equals(OrganizationStatistics?)

public virtual bool Equals(OrganizationStatistics? other)

Parameters

other OrganizationStatistics

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

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

Parameters

left OrganizationStatistics
right OrganizationStatistics

Returns

bool

operator !=(OrganizationStatistics?, OrganizationStatistics?)

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

Parameters

left OrganizationStatistics
right OrganizationStatistics

Returns

bool