Skip to content

Commit bd44192

Browse files
committed
Enhancement: Add user working hours attributes
User working hours attributes are useful when computing workload related tasks. We are keeping the old "length of day" around for the rare scenarios where working hours are undefined, they it should be removed in the long run.
1 parent 367366c commit bd44192

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

projects/user.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,16 @@ type User struct {
7676
// Skills are the skills assigned to the user.
7777
Skills []twapi.Relationship `json:"skills,omitempty"`
7878

79+
// WorkingHour is the working hour scheme assigned to the user.
80+
WorkingHour *twapi.Relationship `json:"workingHour"`
81+
82+
// LengthOfDay is the number of working hours in a day for the user.
83+
//
84+
// Deprecated: This field is deprecated and will be removed in future
85+
// versions. Use the WorkingHour relationship to retrieve detailed working
86+
// hour information.
87+
LengthOfDay float64 `json:"lengthOfDay"`
88+
7989
// Deleted indicates whether the user has been deleted.
8090
Deleted bool `json:"deleted"`
8191

0 commit comments

Comments
 (0)