first step qr reader
parent
5e983bd77d
commit
b0a207008e
@ -1,15 +1,22 @@
|
|||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
|
|
||||||
const MAX_SMALL_SCREEN = 660;
|
/// End points
|
||||||
|
|
||||||
const BASE_URL = 'https://uat.hmgwebservices.com/Services';
|
const BASE_URL = 'https://uat.hmgwebservices.com/Services';
|
||||||
|
|
||||||
const GET_PROJECT = '/Lists.svc/REST/GetProject';
|
const GET_PROJECT = '/Lists.svc/REST/GetProject';
|
||||||
const LOGIN = "/Authentication.svc/REST/CheckDriverAuthentication";
|
const LOGIN = "/Authentication.svc/REST/CheckDriverAuthentication";
|
||||||
|
const GET_ALL_ORDERS = '/Patients.svc/REST/PatientER_Delivery_GetAllOrder';
|
||||||
|
const SCAN_QR = '/Patients.svc/REST/PatientER_Delivery_OrderInsert';
|
||||||
|
|
||||||
|
/// Body Constant
|
||||||
|
const CHANNEL = 9;
|
||||||
|
|
||||||
|
|
||||||
|
/// design constant
|
||||||
|
const MAX_SMALL_SCREEN = 660;
|
||||||
|
|
||||||
const GET_ALL_ORDERS = '/Patients.svc/REST/PatientER_Delivery_GetAllOrder';
|
|
||||||
|
|
||||||
class AppGlobal {
|
class AppGlobal {
|
||||||
static BuildContext context;
|
static BuildContext context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,44 @@
|
|||||||
|
class ScanQrRequestModel {
|
||||||
|
int deliveryOrderID;
|
||||||
|
int driverID;
|
||||||
|
int createdBy;
|
||||||
|
int channel;
|
||||||
|
int groupID;
|
||||||
|
String tokenID;
|
||||||
|
String userID;
|
||||||
|
String mobileNo;
|
||||||
|
|
||||||
|
ScanQrRequestModel(
|
||||||
|
{this.deliveryOrderID,
|
||||||
|
this.driverID,
|
||||||
|
this.createdBy,
|
||||||
|
this.channel,
|
||||||
|
this.groupID,
|
||||||
|
this.tokenID,
|
||||||
|
this.userID,
|
||||||
|
this.mobileNo});
|
||||||
|
|
||||||
|
ScanQrRequestModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
deliveryOrderID = json['DeliveryOrderID'];
|
||||||
|
driverID = json['DriverID'];
|
||||||
|
createdBy = json['CreatedBy'];
|
||||||
|
channel = json['Channel'];
|
||||||
|
groupID = json['GroupID'];
|
||||||
|
tokenID = json['TokenID'];
|
||||||
|
userID = json['UserID'];
|
||||||
|
mobileNo = json['MobileNo'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['DeliveryOrderID'] = this.deliveryOrderID;
|
||||||
|
data['DriverID'] = this.driverID;
|
||||||
|
data['CreatedBy'] = this.createdBy;
|
||||||
|
data['Channel'] = this.channel;
|
||||||
|
data['GroupID'] = this.groupID;
|
||||||
|
data['TokenID'] = this.tokenID;
|
||||||
|
data['UserID'] = this.userID;
|
||||||
|
data['MobileNo'] = this.mobileNo;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue