-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathevaluation_question.go
33 lines (29 loc) · 1.04 KB
/
evaluation_question.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
package gcloudcx
import (
"github.com/google/uuid"
)
// EvaluationQuestion describe an Evaluation Question
type EvaluationQuestion struct {
ID uuid.UUID `json:"id"`
Type string `json:"type"`
Text string `json:"text"`
HelpText string `json:"helpText"`
NAEnabled bool `json:"naEnabled"`
CommentsRequired bool `json:"commentsRequired"`
IsKill bool `json:"isKill"`
IsCritical bool `json:"isCritical"`
VisibilityCondition *VisibilityCondition `json:"visibilityCondition"`
AnswerOptions []*AnswerOption `json:"answerOptions"`
}
// GetID gets the identifier of this
//
// implements Identifiable
func (question EvaluationQuestion) GetID() uuid.UUID {
return question.ID
}
// String gets a string version
//
// implements the fmt.Stringer interface
func (question EvaluationQuestion) String() string {
return question.ID.String()
}