removed unused code

mohemm-wifi-feature
umasoodch 5 years ago
parent 73aa088c04
commit 5e08d8489b

@ -50,7 +50,7 @@ export class AttendScanService {
this.userData = this.common.sharedService.getSharedData(AuthenticatedUser.SHARED_DATA, false); this.userData = this.common.sharedService.getSharedData(AuthenticatedUser.SHARED_DATA, false);
} }
getDeviceLocation(callback?:(latitude: number,longitude: number) => void) { getDeviceLocation() {
this.isFakeLocationUsed = false; this.isFakeLocationUsed = false;
const isVirtual = this.device.isVirtual; const isVirtual = this.device.isVirtual;
if (isVirtual === true) { if (isVirtual === true) {
@ -69,11 +69,6 @@ export class AttendScanService {
} }
this.lat = resp.latitude; this.lat = resp.latitude;
this.longt = resp.longitude; this.longt = resp.longitude;
if(callback != null){
callback(this.lat,this.longt);
return;
}
this.attendance(); this.attendance();
} else { } else {
@ -87,11 +82,6 @@ export class AttendScanService {
if(resp && resp.coords.latitude && resp.coords.longitude) { if(resp && resp.coords.latitude && resp.coords.longitude) {
this.lat = resp.coords.latitude; this.lat = resp.coords.latitude;
this.longt = resp.coords.longitude; this.longt = resp.coords.longitude;
if(callback != null){
callback(this.lat,this.longt);
return;
}
this.attendance(); this.attendance();
} else { } else {

@ -104,19 +104,14 @@ export class WifiModalComponent implements OnInit {
} }
} }
async swipeAttendanceWifi(code:any) { async swipeAttendanceWifi(code:any) {
// this.attendScanService.getDeviceLocation( async (latitude, longitude)=>{
console.log("Marking attendance to server... at location: ");
let ip = await this.wifiWizard2.getWifiIP();
let mac = await this.wifiWizard2.getConnectedBSSID();
const request: attendanceSwipeScannerRequest = new attendanceSwipeScannerRequest(); const request: attendanceSwipeScannerRequest = new attendanceSwipeScannerRequest();
request.PointType = 3; request.PointType = 3;
request.Latitude = 24.708761; request.Latitude = 0;
request.Longitude = 46.665952; request.Longitude = 0;
request.QRValue = ""; request.QRValue = "";
request.NFCValue = ""; request.NFCValue = "";
request.WifiValue = "100";//code + "|" + ip + "|" + mac; request.WifiValue = "100";
request.UID = this.device.uuid; request.UID = this.device.uuid;
request.UserName = this.userData.EMPLOYEE_NUMBER; request.UserName = this.userData.EMPLOYEE_NUMBER;

Loading…
Cancel
Save