Class ResourceQuestion
- Namespace
- Crews.PlanningCenter.Api.Calendar.V2018_08_01
- 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
originalResourceQuestion
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
CreatedAt
UTC time at which the question was created
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }
Property Value
Description
Optional description of the question
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("description")]
public string? Description { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
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
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
trueindicates answering the question is not required when booking
-falseindicates 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
UpdatedAt
UTC time at which the question was updated
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("updated_at")]
public DateTime? UpdatedAt { get; init; }
Property Value
Methods
Equals(ResourceQuestion?)
public virtual bool Equals(ResourceQuestion? other)
Parameters
otherResourceQuestion
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 ==(ResourceQuestion?, ResourceQuestion?)
public static bool operator ==(ResourceQuestion? left, ResourceQuestion? right)
Parameters
leftResourceQuestionrightResourceQuestion
Returns
operator !=(ResourceQuestion?, ResourceQuestion?)
public static bool operator !=(ResourceQuestion? left, ResourceQuestion? right)
Parameters
leftResourceQuestionrightResourceQuestion