-
Notifications
You must be signed in to change notification settings - Fork 13
/
surveyquestion.go
53 lines (33 loc) · 1.26 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
50
51
52
53
package platformclientv2
import (
"encoding/json"
"strconv"
"strings"
)
// 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)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}