Table of Contents

Class Person

Namespace
Crews.PlanningCenter.Api.Groups.V2018_08_01
Assembly
Crews.PlanningCenter.Api.dll

Attributes for the Person resource.

public record Person : IEquatable<Person>
Inheritance
Person
Implements
Inherited Members

Constructors

Person()

public Person()

Person(Person)

protected Person(Person original)

Parameters

original Person

Properties

Addresses

Returns all the addresses associated with this person.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("addresses")]
public JsonArray? Addresses { get; init; }

Property Value

JsonArray

AvatarUrl

The URL of the person's avatar.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("avatar_url")]
public string? AvatarUrl { get; init; }

Property Value

string

Child

Whether or not the person is under 13 years old.
This is false if a birthdate is not set.


Only available when requested with the ?fields param

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("child")]
public bool? Child { get; init; }

Property Value

bool?

CreatedAt

Date and time this person was first created in Planning Center

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }

Property Value

DateTime?

EmailAddresses

Returns all the email addresses associated with this person.

<code>json<br />[{<br /> "address": "sam@example.com",<br /> "location": "Home",<br /> "primary": true<br />}]<br /></code>

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("email_addresses")]
public JsonArray? EmailAddresses { get; init; }

Property Value

JsonArray

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

FirstName

The person's first name.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("first_name")]
public string? FirstName { get; init; }

Property Value

string

LastName

The person's last name.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("last_name")]
public string? LastName { get; init; }

Property Value

string

Permissions

Can be administrator, group_type_manager, leader, member, or no access.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("permissions")]
public string? Permissions { get; init; }

Property Value

string

PhoneNumbers

Returns all the phone numbers associated with this person.

<code>json<br />[{<br /> "number": "(800) 123-4567",<br /> "carrier": null,<br /> "location": "Mobile",<br /> "primary": true<br />}]<br /></code>

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("phone_numbers")]
public JsonArray? PhoneNumbers { get; init; }

Property Value

JsonArray

Methods

Equals(Person?)

public virtual bool Equals(Person? other)

Parameters

other Person

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

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

Parameters

left Person
right Person

Returns

bool

operator !=(Person?, Person?)

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

Parameters

left Person
right Person

Returns

bool