Class Person
- Namespace
- Crews.PlanningCenter.Api.Groups.V2023_07_10
- 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
originalPerson
Properties
Addresses
Returns all the addresses associated with this person.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("addresses")]
public JsonArray? Addresses { get; init; }
Property Value
AvatarUrl
The URL of the person's avatar.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("avatar_url")]
public string? AvatarUrl { get; init; }
Property Value
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
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
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
FirstName
The person's first name.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("first_name")]
public string? FirstName { get; init; }
Property Value
LastName
The person's last name.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("last_name")]
public string? LastName { get; init; }
Property Value
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
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
Methods
Equals(Person?)
public virtual bool Equals(Person? other)
Parameters
otherPerson
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 ==(Person?, Person?)
public static bool operator ==(Person? left, Person? right)
Parameters
Returns
operator !=(Person?, Person?)
public static bool operator !=(Person? left, Person? right)