Table of Contents

Class ResourceBooking

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

Attributes for the ResourceBooking resource.

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

Constructors

ResourceBooking()

public ResourceBooking()

ResourceBooking(ResourceBooking)

protected ResourceBooking(ResourceBooking original)

Parameters

original ResourceBooking

Properties

CreatedAt

UTC time at which the booking was created

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

Property Value

DateTime?

EndsAt

UTC time at which usage of the booked room or resource ends

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

Property Value

DateTime?

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Quantity

The quantity of the rooms or resources booked

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

Property Value

int?

StartsAt

UTC time at which usage of the booked room or resource starts

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

Property Value

DateTime?

UpdatedAt

UTC time at which the booking was updated

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

Property Value

DateTime?

Methods

Equals(ResourceBooking?)

public virtual bool Equals(ResourceBooking? other)

Parameters

other ResourceBooking

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

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

Parameters

left ResourceBooking
right ResourceBooking

Returns

bool

operator !=(ResourceBooking?, ResourceBooking?)

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

Parameters

left ResourceBooking
right ResourceBooking

Returns

bool