Skip to content

Commit

Permalink
fix(comid): Introduce deleted lines in measurement.go
Browse files Browse the repository at this point in the history
Signed-off-by: Yogesh Deshpande <[email protected]>
  • Loading branch information
yogeshbdeshpande committed Oct 3, 2024
1 parent 4cbd2e5 commit e3400bc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions comid/measurement.go
Original file line number Diff line number Diff line change
Expand Up @@ -781,31 +781,39 @@ type Measurements extensions.Collection[Measurement, *Measurement]
func NewMeasurements() *Measurements {
return (*Measurements)(extensions.NewCollection[Measurement]())
}

func (o *Measurements) RegisterExtensions(exts extensions.Map) error {
return (*extensions.Collection[Measurement, *Measurement])(o).RegisterExtensions(exts)
}

func (o *Measurements) GetExtensions() extensions.IMapValue {
return (*extensions.Collection[Measurement, *Measurement])(o).GetExtensions()
}

func (o *Measurements) Valid() error {
return (*extensions.Collection[Measurement, *Measurement])(o).Valid()
}

func (o *Measurements) IsEmpty() bool {
return (*extensions.Collection[Measurement, *Measurement])(o).IsEmpty()
}

func (o *Measurements) Add(val *Measurement) *Measurements {
ret := (*extensions.Collection[Measurement, *Measurement])(o).Add(val)
return (*Measurements)(ret)
}

func (o Measurements) MarshalCBOR() ([]byte, error) {
return (extensions.Collection[Measurement, *Measurement])(o).MarshalCBOR()
}

func (o *Measurements) UnmarshalCBOR(data []byte) error {
return (*extensions.Collection[Measurement, *Measurement])(o).UnmarshalCBOR(data)
}
func (o Measurements) MarshalJSON() ([]byte, error) {
return (extensions.Collection[Measurement, *Measurement])(o).MarshalJSON()
}

func (o *Measurements) UnmarshalJSON(data []byte) error {
return (*extensions.Collection[Measurement, *Measurement])(o).UnmarshalJSON(data)
}

0 comments on commit e3400bc

Please sign in to comment.