/
surveyquestion.go
49 lines (30 loc) · 1.16 KB
/
surveyquestion.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package platformclientv2
import (
"encoding/json"
)
// Surveyquestion
type Surveyquestion struct {
// Id
Id *string `json:"id,omitempty"`
// Text
Text *string `json:"text,omitempty"`
// HelpText
HelpText *string `json:"helpText,omitempty"`
// VarType
VarType *string `json:"type,omitempty"`
// NaEnabled
NaEnabled *bool `json:"naEnabled,omitempty"`
// VisibilityCondition
VisibilityCondition *Visibilitycondition `json:"visibilityCondition,omitempty"`
// AnswerOptions - Options from which to choose an answer for this question. Only used by Multiple Choice type questions.
AnswerOptions *[]Answeroption `json:"answerOptions,omitempty"`
// MaxResponseCharacters - How many characters are allowed in the text response to this question. Used by NPS and Free Text question types.
MaxResponseCharacters *int `json:"maxResponseCharacters,omitempty"`
// ExplanationPrompt - Prompt for details explaining the chosen NPS score. Used by NPS questions.
ExplanationPrompt *string `json:"explanationPrompt,omitempty"`
}
// String returns a JSON representation of the model
func (o *Surveyquestion) String() string {
j, _ := json.Marshal(o)
return string(j)
}