Skip to content

Commit

Permalink
Add missing update support for 1.3 additions
Browse files Browse the repository at this point in the history
  • Loading branch information
DerAndereAndi committed Oct 25, 2023
1 parent 5134925 commit f04454f
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spine/model/electricalconnection_additions.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,19 @@ func (r *ElectricalConnectionDescriptionListDataType) UpdateList(newList any, fi
r.ElectricalConnectionDescriptionData = UpdateList(r.ElectricalConnectionDescriptionData, newData, filterPartial, filterDelete)
}

// ElectricalConnectionCharacteristicListDataType

var _ Updater = (*ElectricalConnectionCharacteristicListDataType)(nil)

func (r *ElectricalConnectionCharacteristicListDataType) UpdateList(newList any, filterPartial, filterDelete *FilterType) {
var newData []ElectricalConnectionCharacteristicDataType
if newList != nil {
newData = newList.(*ElectricalConnectionCharacteristicListDataType).ElectricalConnectionCharacteristicListData
}

r.ElectricalConnectionCharacteristicListData = UpdateList(r.ElectricalConnectionCharacteristicListData, newData, filterPartial, filterDelete)
}

// ElectricalConnectionParameterDescriptionListDataType

var _ Updater = (*ElectricalConnectionParameterDescriptionListDataType)(nil)
Expand Down
26 changes: 26 additions & 0 deletions spine/model/identification_additions.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,29 @@ func (r *IdentificationListDataType) UpdateList(newList any, filterPartial, filt

r.IdentificationData = UpdateList(r.IdentificationData, newData, filterPartial, filterDelete)
}

// SessionIdentificationListDataType

var _ Updater = (*SessionIdentificationListDataType)(nil)

func (r *SessionIdentificationListDataType) UpdateList(newList any, filterPartial, filterDelete *FilterType) {
var newData []SessionIdentificationDataType
if newList != nil {
newData = newList.(*SessionIdentificationListDataType).SessionIdentificationData
}

r.SessionIdentificationData = UpdateList(r.SessionIdentificationData, newData, filterPartial, filterDelete)
}

// SessionMeasurementRelationListDataType

var _ Updater = (*SessionMeasurementRelationListDataType)(nil)

func (r *SessionMeasurementRelationListDataType) UpdateList(newList any, filterPartial, filterDelete *FilterType) {
var newData []SessionMeasurementRelationDataType
if newList != nil {
newData = newList.(*SessionMeasurementRelationListDataType).SessionMeasurementRelationData
}

r.SessionMeasurementRelationData = UpdateList(r.SessionMeasurementRelationData, newData, filterPartial, filterDelete)
}
13 changes: 13 additions & 0 deletions spine/model/measurement_additions.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@ func (r *MeasurementListDataType) UpdateList(newList any, filterPartial, filterD
r.MeasurementData = UpdateList(r.MeasurementData, newData, filterPartial, filterDelete)
}

// MeasurementSeriesListDataType

var _ Updater = (*MeasurementSeriesListDataType)(nil)

func (r *MeasurementSeriesListDataType) UpdateList(newList any, filterPartial, filterDelete *FilterType) {
var newData []MeasurementSeriesDataType
if newList != nil {
newData = newList.(*MeasurementSeriesListDataType).MeasurementSeriesData
}

r.MeasurementSeriesData = UpdateList(r.MeasurementSeriesData, newData, filterPartial, filterDelete)
}

// MeasurementConstraintsListDataType

var _ Updater = (*MeasurementConstraintsListDataType)(nil)
Expand Down
14 changes: 14 additions & 0 deletions spine/model/stateinformation_additions.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package model

// StateInformationListDataType

var _ Updater = (*StateInformationListDataType)(nil)

func (r *StateInformationListDataType) UpdateList(newList any, filterPartial, filterDelete *FilterType) {
var newData []StateInformationDataType
if newList != nil {
newData = newList.(*StateInformationListDataType).StateInformationData
}

r.StateInformationData = UpdateList(r.StateInformationData, newData, filterPartial, filterDelete)
}

0 comments on commit f04454f

Please sign in to comment.