github.com/enbility/spine-go@v0.7.0/model/supplyconditions_additions.go (about) 1 package model 2 3 // SupplyConditionListDataType 4 5 var _ Updater = (*SupplyConditionListDataType)(nil) 6 7 func (r *SupplyConditionListDataType) UpdateList(remoteWrite, persist bool, newList any, filterPartial, filterDelete *FilterType) (any, bool) { 8 var newData []SupplyConditionDataType 9 if newList != nil { 10 newData = newList.(*SupplyConditionListDataType).SupplyConditionData 11 } 12 13 data, success := UpdateList(remoteWrite, r.SupplyConditionData, newData, filterPartial, filterDelete) 14 15 if success && persist { 16 r.SupplyConditionData = data 17 } 18 19 return data, success 20 } 21 22 // SupplyConditionDescriptionListDataType 23 24 var _ Updater = (*SupplyConditionDescriptionListDataType)(nil) 25 26 func (r *SupplyConditionDescriptionListDataType) UpdateList(remoteWrite, persist bool, newList any, filterPartial, filterDelete *FilterType) (any, bool) { 27 var newData []SupplyConditionDescriptionDataType 28 if newList != nil { 29 newData = newList.(*SupplyConditionDescriptionListDataType).SupplyConditionDescriptionData 30 } 31 32 data, success := UpdateList(remoteWrite, r.SupplyConditionDescriptionData, newData, filterPartial, filterDelete) 33 34 if success && persist { 35 r.SupplyConditionDescriptionData = data 36 } 37 38 return data, success 39 } 40 41 // SupplyConditionThresholdRelationListDataType 42 43 var _ Updater = (*SupplyConditionThresholdRelationListDataType)(nil) 44 45 func (r *SupplyConditionThresholdRelationListDataType) UpdateList(remoteWrite, persist bool, newList any, filterPartial, filterDelete *FilterType) (any, bool) { 46 var newData []SupplyConditionThresholdRelationDataType 47 if newList != nil { 48 newData = newList.(*SupplyConditionThresholdRelationListDataType).SupplyConditionThresholdRelationData 49 } 50 51 data, success := UpdateList(remoteWrite, r.SupplyConditionThresholdRelationData, newData, filterPartial, filterDelete) 52 53 if success && persist { 54 r.SupplyConditionThresholdRelationData = data 55 } 56 57 return data, success 58 }