Class BirthdayPerson
- Namespace
- Crews.PlanningCenter.Api.People
- Assembly
- Crews.PlanningCenter.Api.dll
Represents the details of a person's birth date.
[ExcludeFromCodeCoverage(Justification = "This type is a DTO with no logic to test.")]
public record BirthdayPerson : IEquatable<BirthdayPerson>
- Inheritance
-
BirthdayPerson
- Implements
- Inherited Members
Constructors
BirthdayPerson()
public BirthdayPerson()
BirthdayPerson(BirthdayPerson)
[SetsRequiredMembers]
protected BirthdayPerson(BirthdayPerson original)
Parameters
originalBirthdayPerson
Properties
Avatar
The URL of the person's avatar image.
[JsonPropertyName("avatar")]
public required string Avatar { get; init; }
Property Value
Birthdate
The birthdate of the person.
[JsonPropertyName("birthdate")]
public DateOnly Birthdate { get; init; }
Property Value
Child
Indicates whether the person is a child.
[JsonPropertyName("child")]
public bool Child { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Id
The unique identifier of the person.
[JsonPropertyName("id")]
[JsonConverter(typeof(StringFromNumberConverter))]
public required string Id { get; init; }
Property Value
Name
The name of the person.
[JsonPropertyName("name")]
public required string Name { get; init; }
Property Value
Methods
Equals(BirthdayPerson?)
public virtual bool Equals(BirthdayPerson? other)
Parameters
otherBirthdayPerson
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 ==(BirthdayPerson?, BirthdayPerson?)
public static bool operator ==(BirthdayPerson? left, BirthdayPerson? right)
Parameters
leftBirthdayPersonrightBirthdayPerson
Returns
operator !=(BirthdayPerson?, BirthdayPerson?)
public static bool operator !=(BirthdayPerson? left, BirthdayPerson? right)
Parameters
leftBirthdayPersonrightBirthdayPerson