red-ui/libs/red-domain/src/lib/component-mappings/component-mapping.model.ts
2024-06-05 00:09:32 +03:00

25 lines
765 B
TypeScript

import { IComponentMapping } from './component-mapping';
import { IListable } from '@iqser/common-ui';
export class ComponentMapping implements IComponentMapping, IListable {
readonly id: string;
readonly name: string;
readonly file: string;
readonly delimiter: string;
readonly encodingType: string;
readonly version: number;
constructor(componentMapping: IComponentMapping) {
this.id = componentMapping.id;
this.name = componentMapping.name;
this.file = componentMapping.file;
this.delimiter = componentMapping.delimiter;
this.encodingType = componentMapping.encodingType;
this.version = componentMapping.version;
}
get searchKey(): string {
return this.name;
}
}