-
Notifications
You must be signed in to change notification settings - Fork 1
/
evaluation_question_group.go
36 lines (32 loc) · 1.17 KB
/
evaluation_question_group.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
package gcloudcx
import (
"github.com/google/uuid"
)
// EvaluationQuestionGroup describes a Group of Evaluation Questions
type EvaluationQuestionGroup struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
DefaultAnswersToHighest bool `json:"defaultAnswersToHighest"`
DefaultAnswersToNA bool `json:"defaultAnswersToNA"`
NAEnabled bool `json:"naEnabled"`
Weight float64 `json:"weight"`
ManualWeight bool `json:"manualWeight"`
Questions []*EvaluationQuestion `json:"questions"`
VisibilityCondition *VisibilityCondition `json:"visibilityCondition"`
}
// GetID gets the identifier of this
//
// implements Identifiable
func (group EvaluationQuestionGroup) GetID() uuid.UUID {
return group.ID
}
// String gets a string version
//
// implements the fmt.Stringer interface
func (group EvaluationQuestionGroup) String() string {
if len(group.Name) != 0 {
return group.Name
}
return group.ID.String()
}