Table of Contents

Class Resource

Namespace
Crews.PlanningCenter.Api.Groups.V2023_07_10
Assembly
Crews.PlanningCenter.Api.dll

Attributes for the Resource resource.

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

Constructors

Resource()

public Resource()

Resource(Resource)

protected Resource(Resource original)

Parameters

original Resource

Properties

Description

The description of the resource written by the person who created it.

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

Property Value

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

LastUpdated

The date and time the resource was last updated.

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

Property Value

DateTime?

Name

The name/title of the resource.

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

Property Value

string

Type

Either FileResource or LinkResource

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

Property Value

string

Visibility

Possible values: leaders or members

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

Property Value

string

Methods

Equals(Resource?)

public virtual bool Equals(Resource? other)

Parameters

other Resource

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

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

Parameters

left Resource
right Resource

Returns

bool

operator !=(Resource?, Resource?)

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

Parameters

left Resource
right Resource

Returns

bool