Class ResourceBooking
- Namespace
- Crews.PlanningCenter.Api.Calendar.V2018_08_01
- 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
originalResourceBooking
Properties
CreatedAt
UTC time at which the booking was created
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
Property Value
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
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
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
UpdatedAt
UTC time at which the booking was updated
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("updated_at")]
public DateTime? UpdatedAt { get; init; }
Property Value
Methods
Equals(ResourceBooking?)
public virtual bool Equals(ResourceBooking? other)
Parameters
otherResourceBooking
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 ==(ResourceBooking?, ResourceBooking?)
public static bool operator ==(ResourceBooking? left, ResourceBooking? right)
Parameters
leftResourceBookingrightResourceBooking
Returns
operator !=(ResourceBooking?, ResourceBooking?)
public static bool operator !=(ResourceBooking? left, ResourceBooking? right)
Parameters
leftResourceBookingrightResourceBooking