import { Entity } from '@iqser/common-ui';
import { IDefaultColors } from './default-colors';

export class DefaultColors extends Entity<IDefaultColors> implements IDefaultColors {
    readonly dossierTemplateId: string;
    readonly requestAddColor: string;
    readonly requestRemoveColor: string;
    readonly dictionaryRequestColor: string;
    readonly previewColor: string;
    readonly analysisColor: string;
    readonly updatedColor: string;
    readonly recommendationColor: string;
    readonly hintColor: string;
    readonly redactionColor: string;
    readonly ignoredHintColor: string;
    readonly skippedColor: string;
    readonly appliedRedactionColor: string;

    readonly routerLink = '';

    constructor(entity: IDefaultColors) {
        super(entity);
        this.dossierTemplateId = entity.dossierTemplateId;
        this.requestAddColor = entity.requestAddColor;
        this.requestRemoveColor = entity.requestRemoveColor;
        this.dictionaryRequestColor = entity.dictionaryRequestColor;
        this.previewColor = entity.previewColor;
        this.analysisColor = entity.analysisColor;
        this.updatedColor = entity.updatedColor;
        this.recommendationColor = entity.recommendationColor;
        this.hintColor = entity.hintColor;
        this.redactionColor = entity.redactionColor;
        this.ignoredHintColor = entity.ignoredHintColor;
        this.skippedColor = entity.skippedColor;
        this.appliedRedactionColor = entity.appliedRedactionColor;
    }

    get id(): string {
        return this.dossierTemplateId;
    }

    get searchKey(): string {
        return this.dossierTemplateId;
    }
}
