import { APP_ID } from '~/constants/api.constants';
import { BaseInput } from '~/core/entities/input/baseInput';

export class EvaluationAnswerPerson {
    /* tslint:disable variable-name */
    ID_EvaluationCriteria: number;
    Answer: number;

    /* tslint:enable variable-name */

    constructor(evaluationCriteriaId = 0, answer = 0) {
        this.ID_EvaluationCriteria = evaluationCriteriaId;
        this.Answer = answer;
    }
}

export class EvaluationPersonUpdate extends BaseInput {
    /* tslint:disable variable-name */
    Answers: EvaluationAnswerPerson[];
    ID_Login: string;
    ID: number;
    wrapper = 'evaluationUpdateInput';

    /* tslint:enable variable-name */

    constructor(appId = APP_ID, loginId = '', ID = 0, answers = null) {
        super(appId);
        this.ID_Login = loginId;
        this.ID = ID;
        this.Answers = answers;
    }
}
