You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
943 B
TypeScript
21 lines
943 B
TypeScript
import { Injectable } from "@angular/core";
|
|
import { Observable } from "rxjs";
|
|
import { ConnectorService } from "src/app/hmg-common/services/connector/connector.service";
|
|
import { AuthenticationService } from "src/app/hmg-common/services/authentication/authentication.service";
|
|
import { attendanceSwipeScannerRequest } from '../models/attendanceSwipe.Request';
|
|
@Injectable({
|
|
providedIn: "root"
|
|
})
|
|
export class AttendanceService {
|
|
public AttendanceSwipeURL : string ='Services/SWP.svc/REST/AuthenticateAndSwipeUser';
|
|
constructor(
|
|
public con: ConnectorService,
|
|
public authService: AuthenticationService
|
|
) {}
|
|
public attendanceSwipeScanner(attendanceSwipeScanner: attendanceSwipeScannerRequest, onError?: any, errorLabel?: string): Observable<any> {
|
|
const request = attendanceSwipeScanner;
|
|
this.authService.authenticateRequest(request);
|
|
return this.con.post(this.AttendanceSwipeURL,request,onError,errorLabel);
|
|
}
|
|
}
|