Table of Contents

Class Resource

Namespace
Crews.PlanningCenter.Api.Calendar.V2021_07_20
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

CreatedAt

UTC time at which the room or resource was created

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

Property Value

DateTime?

Description

Description of the room or resource

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

Property Value

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

ExpiresAt

UTC time at which the resource expires

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

Property Value

DateTime?

HomeLocation

Where the resource is normally kept

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

Property Value

string

Image

Path to where resource image is stored

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("image")]
public Image? Image { get; init; }

Property Value

Image

Kind

The type of resource, can either be Room or Resource

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

Property Value

string

Name

The name of the room or resource

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

Property Value

string

PathName

A string representing the location of the resource if it is nested within a folder.

Each parent folder is separated by /

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

Property Value

string

Quantity

The quantity of the resource

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("quantity")]
public int? Quantity { get; init; }

Property Value

int?

SerialNumber

The serial number of the resource

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

Property Value

string

UpdatedAt

UTC time at which the room or resource was updated

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

Property Value

DateTime?

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