Class Resource
- Namespace
- Crews.PlanningCenter.Api.Calendar.V2022_07_07
- 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
originalResource
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
Description
Description of the room or resource
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("description")]
public string? Description { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
ExpiresAt
UTC time at which the resource expires
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("expires_at")]
public DateTime? ExpiresAt { get; init; }
Property Value
HomeLocation
Where the resource is normally kept
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("home_location")]
public string? HomeLocation { get; init; }
Property Value
Image
Path to where resource image is stored
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("image")]
public Image? Image { get; init; }
Property Value
Kind
The type of resource, can either be Room or Resource
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("kind")]
public string? Kind { get; init; }
Property Value
Name
The name of the room or resource
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("name")]
public string? Name { get; init; }
Property Value
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
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
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
Methods
Equals(Resource?)
public virtual bool Equals(Resource? other)
Parameters
otherResource
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 ==(Resource?, Resource?)
public static bool operator ==(Resource? left, Resource? right)
Parameters
Returns
operator !=(Resource?, Resource?)
public static bool operator !=(Resource? left, Resource? right)