Class Membership
- Namespace
- Crews.PlanningCenter.Api.Groups.V2018_08_01
- Assembly
- Crews.PlanningCenter.Api.dll
Attributes for the Membership resource.
public record Membership : IEquatable<Membership>
- Inheritance
-
Membership
- Implements
- Inherited Members
Constructors
Membership()
public Membership()
Membership(Membership)
protected Membership(Membership original)
Parameters
originalMembership
Properties
AccountCenterIdentifier
The ID of the person in People.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("account_center_identifier")]
public string? AccountCenterIdentifier { 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
ColorIdentifier
The color theme of the group's group type.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("color_identifier")]
public int? ColorIdentifier { get; init; }
Property Value
- int?
EmailAddress
The person's primary email address.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("email_address")]
public string? EmailAddress { 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
JoinedAt
The date and time the person joined the group.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("joined_at")]
public DateTime? JoinedAt { get; init; }
Property Value
LastName
The person's last name.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("last_name")]
public string? LastName { get; init; }
Property Value
PhoneNumber
The person's primary phone number.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("phone_number")]
public string? PhoneNumber { get; init; }
Property Value
Role
The role of the person in the group.
Possible values: member or leader
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("role")]
public string? Role { get; init; }
Property Value
Methods
Equals(Membership?)
public virtual bool Equals(Membership? other)
Parameters
otherMembership
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 ==(Membership?, Membership?)
public static bool operator ==(Membership? left, Membership? right)
Parameters
leftMembershiprightMembership
Returns
operator !=(Membership?, Membership?)
public static bool operator !=(Membership? left, Membership? right)
Parameters
leftMembershiprightMembership