Table of Contents

Class Tag

Namespace
Crews.PlanningCenter.Api.Calendar.V2022_07_07
Assembly
Crews.PlanningCenter.Api.dll

Attributes for the Tag resource.

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

Constructors

Tag()

public Tag()

Tag(Tag)

protected Tag(Tag original)

Parameters

original Tag

Properties

ChurchCenterCategory

true indicates that this tag is used as a category on Church Center

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

Property Value

bool?

Color

Hex color code of the tag

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

Property Value

string

CreatedAt

UTC time at which the tag was created

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

Property Value

DateTime?

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Name

The tag name

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

Property Value

string

Position

If the tag belongs to a TagGroup,
position indicates place in list within TagGroup in the UI.

If the tag does not belong to a TagGroup,
position indicates place in list under "Individual Tags" in the UI.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("position")]
public decimal? Position { get; init; }

Property Value

decimal?

UpdatedAt

UTC time at which the tag was updated

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

Property Value

DateTime?

Methods

Equals(Tag?)

public virtual bool Equals(Tag? other)

Parameters

other Tag

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

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

Parameters

left Tag
right Tag

Returns

bool

operator !=(Tag?, Tag?)

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

Parameters

left Tag
right Tag

Returns

bool