Class Key
- Namespace
- Crews.PlanningCenter.Api.Services.V2018_11_01
- Assembly
- Crews.PlanningCenter.Api.dll
Attributes for the Key resource.
public record Key : IEquatable<Key>
- Inheritance
-
Key
- Implements
- Inherited Members
Constructors
Key()
public Key()
Key(Key)
protected Key(Key original)
Parameters
originalKey
Properties
AlternateKeys
An array of objects.
{
"name": "My Alternate Key",
"key": "B"
}
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("alternate_keys")]
public string? AlternateKeys { get; init; }
Property Value
CreatedAt
Planning Center does not provide a description for this attribute.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
Property Value
EndingKey
Possible Values:Ab, A, A#, Bb, B, C, C#, Db, D, D#, Eb, E, F, F#, Gb, G, G#, Abm, Am, A#m, Bbm, Bm, Cm, C#m, Dbm, Dm, D#m, Ebm, Em, Fm, F#m, Gbm, Gm, G#m
To set the key to minor append m to the key. e.g. Cm
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("ending_key")]
public string? EndingKey { get; init; }
Property Value
EndingMinor
Planning Center does not provide a description for this attribute.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("ending_minor")]
public bool? EndingMinor { get; init; }
Property Value
- bool?
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Name
Planning Center does not provide a description for this attribute.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("name")]
public string? Name { get; init; }
Property Value
StartingKey
Possible Values:Ab, A, A#, Bb, B, C, C#, Db, D, D#, Eb, E, F, F#, Gb, G, G#, Abm, Am, A#m, Bbm, Bm, Cm, C#m, Dbm, Dm, D#m, Ebm, Em, Fm, F#m, Gbm, Gm, G#m
To set the key to minor append m to the key. e.g. Cm
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("starting_key")]
public string? StartingKey { get; init; }
Property Value
StartingMinor
Planning Center does not provide a description for this attribute.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("starting_minor")]
public bool? StartingMinor { get; init; }
Property Value
- bool?
UpdatedAt
Planning Center does not provide a description for this attribute.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("updated_at")]
public DateTime? UpdatedAt { get; init; }
Property Value
Methods
Equals(Key?)
public virtual bool Equals(Key? other)
Parameters
otherKey
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 ==(Key?, Key?)
public static bool operator ==(Key? left, Key? right)
Parameters
Returns
operator !=(Key?, Key?)
public static bool operator !=(Key? left, Key? right)