Table of Contents

Class ResourceQuestion

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

Attributes for the ResourceQuestion resource.

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

Constructors

ResourceQuestion()

public ResourceQuestion()

ResourceQuestion(ResourceQuestion)

protected ResourceQuestion(ResourceQuestion original)

Parameters

original ResourceQuestion

Properties

Choices

If kind is dropdown, represents a string of dropdown choices
separated by the | character

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

Property Value

string

CreatedAt

UTC time at which the question was created

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

Property Value

DateTime?

Description

Optional description of the question

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

Property Value

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Kind

Possible values:
- dropdown: predefined list of choices as an answer
- paragraph: expected answer is a paragraph
- text: expected answer is a sentence
- yesno: expected answer is 'Yes' or 'No'

- section_header: used to separate questions in the UI, no expected answer

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

Property Value

string

MultipleSelect

If kind is dropdown,
true indicates that more than one selection is permitted

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("multiple_select")]
public bool? MultipleSelect { get; init; }

Property Value

bool?

Optional

  • true indicates answering the question is not required when booking
    - false indicates answering the question is required when booking
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("optional")]
public bool? Optional { get; init; }

Property Value

bool?

Position

Position of question in list in the UI

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

Property Value

int?

Question

The question to be answered

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

Property Value

string

UpdatedAt

UTC time at which the question was updated

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

Property Value

DateTime?

Methods

Equals(ResourceQuestion?)

public virtual bool Equals(ResourceQuestion? other)

Parameters

other ResourceQuestion

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

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

Parameters

left ResourceQuestion
right ResourceQuestion

Returns

bool

operator !=(ResourceQuestion?, ResourceQuestion?)

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

Parameters

left ResourceQuestion
right ResourceQuestion

Returns

bool