import { Injectable } from '@angular/core';
import {BaseService} from '../../base/base-service';
import {HttpClient} from '@angular/common/http';

@Injectable({
    providedIn: 'root'
})
export class VEligibleCandidatesService extends BaseService{

    constructor(
        public http: HttpClient
    ) {
        super('/v1/register/eligible_candidates', http);
    }

    candidateCheckStatus(query: string){
        return this.http.get(`${this.fullUrl}_chk_status${query}`);
    }

    getPage(query){
        return this.http.get(`${this.fullUrl}_chk_status_get_paged/${query}`)
    }

    getAllByTestinUid(tsetInUid){
        return this.http.get(`${this.fullUrl}?testing_information_uid=${tsetInUid}`);
    }

}
