fix: refactor to have child classes that inherit from RecordValue, but represent the distinct types of value objects that can be returned by the api. fix: added and updated tests to address this refactor
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { RecordValueType } from '../enums/RecordValueType';
|
||||
import { RecordValue } from './RecordValue';
|
||||
import { type ScoringGroup } from './ScoringGroup';
|
||||
|
||||
export class ScoringGroupListRecordValue extends RecordValue<ScoringGroup[]> {
|
||||
constructor(fieldId: number, value: ScoringGroup[]) {
|
||||
super(RecordValueType.ScoringGroupList, fieldId, value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user