Skip to content

Commit

Permalink
Add note to isActive and IsChangable flags
Browse files Browse the repository at this point in the history
  • Loading branch information
David Sapir committed Nov 6, 2024
1 parent 26efd39 commit fe2b702
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions usecases/ca/cdt/public.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ func (e *CDT) Setpoints(entity spineapi.EntityRemoteInterface) ([]usecasesapi.Se
timePeriod = *setpoint.TimePeriod
}

// As per [Resource Specification] 4.3.23.4 setpointListData:
// - isSetpointActive: If false, the setpoint is inactive; if true or omitted, it is active.
// - isSetpointChangeable: If true, the server accepts changes; if false, it declines changes. If absent, changes are accepted.
isActive := (setpoint.IsSetpointActive == nil || *setpoint.IsSetpointActive)
isChangeable := (setpoint.IsSetpointChangeable == nil || *setpoint.IsSetpointChangeable)

Expand Down

0 comments on commit fe2b702

Please sign in to comment.