8/27/1
This commit is contained in:
@@ -1,23 +1,39 @@
|
||||
import 'package:SEFER/constant/api_key.dart';
|
||||
import 'package:SEFER/env/env.dart';
|
||||
|
||||
import '../main.dart';
|
||||
import 'box_name.dart';
|
||||
|
||||
class AppLink {
|
||||
static final String server = Env.serverPHP;
|
||||
static final String seferPaymentServer0 = Env.seferPaymentServer;
|
||||
static final String seferPaymentServer = '${Env.seferCairoServer}/ride';
|
||||
static final String seferAlexandriaServer = Env.seferAlexandriaServer;
|
||||
static final String seferCairoServer = Env.seferCairoServer;
|
||||
static final String seferGizaServer = Env.seferGizaServer;
|
||||
|
||||
static final String endPoint = box.read(BoxName.serverChosen);
|
||||
static final String server = Env.seferCairoServer;
|
||||
// static final String server = Env.serverPHP;
|
||||
|
||||
static String googleMapsLink = 'https://maps.googleapis.com/maps/api/';
|
||||
static String llama = 'https://api.llama-api.com/chat/completions';
|
||||
static String gemini =
|
||||
'https://generativelanguage.googleapis.com/v1beta3/models/text-bison-001:generateText';
|
||||
|
||||
static String test = "$server/test.php";
|
||||
//===============firebase==========================
|
||||
//===============contact==========================
|
||||
static String savePhones = "$server/ride/egyptPhones/add.php";
|
||||
static String getPhones = "$server/ride/egyptPhones/get.php";
|
||||
|
||||
////===============firebase==========================
|
||||
static String getTokens = "$server/ride/firebase/get.php";
|
||||
|
||||
static String getDriverToken = "$server/ride/firebase/getDriverToken.php";
|
||||
static String addTokens = "$server/ride/firebase/add.php";
|
||||
static String addTokensDriver = "$server/ride/firebase/addDriver.php";
|
||||
|
||||
//=======================Wallet===================
|
||||
static String wallet = '$server/ride/passengerWallet';
|
||||
static String walletDriver = '$server/ride/driverWallet';
|
||||
static String wallet = '$seferPaymentServer/passengerWallet';
|
||||
static String walletDriver = '$seferPaymentServer/driverWallet';
|
||||
static String getAllPassengerTransaction =
|
||||
"$wallet/getAllPassengerTransaction.php";
|
||||
static String getWalletByPassenger = "$wallet/getWalletByPassenger.php";
|
||||
@@ -49,10 +65,13 @@ class AppLink {
|
||||
////=======================cancelRide===================
|
||||
static String ride = '$server/ride';
|
||||
static String addCancelRideFromPassenger = "$server/ride/cancelRide/add.php";
|
||||
static String addCancelTripFromDriverAfterApplied =
|
||||
"$server/ride/cancelRide/addCancelTripFromDriverAfterApplied.php";
|
||||
static String cancelRide = "$server/ride/cancelRide/get.php";
|
||||
//-----------------ridessss------------------
|
||||
static String addRides = "$ride/rides/add.php";
|
||||
static String getRides = "$ride/rides/get.php";
|
||||
static String getTripCountByCaptain = "$ride/rides/getTripCountByCaptain.php";
|
||||
static String getRideOrderID = "$ride/rides/getRideOrderID.php";
|
||||
static String getRideStatus = "$ride/rides/getRideStatus.php";
|
||||
static String getapiKey = "$ride/apiKey/get.php";
|
||||
@@ -74,21 +93,26 @@ class AppLink {
|
||||
static String addKazanPercent = "$ride/kazan/add.php";
|
||||
|
||||
////-----------------DriverPayment------------------
|
||||
static String addDrivePayment = "$ride/payment/add.php";
|
||||
static String updatePaymetToPaid = "$ride/payment/updatePaymetToPaid.php";
|
||||
static String addDrivePayment = "$seferPaymentServer/payment/add.php";
|
||||
static String updatePaymetToPaid =
|
||||
"$seferPaymentServer/payment/updatePaymetToPaid.php";
|
||||
|
||||
static String addSeferWallet = "$ride/seferWallet/add.php";
|
||||
static String getSeferWallet = "$ride/seferWallet/get.php";
|
||||
static String addDriverPaymentPoints = "$ride/driverPayment/add.php";
|
||||
static String addSeferWallet = "$seferPaymentServer/seferWallet/add.php";
|
||||
static String getSeferWallet = "$seferPaymentServer/seferWallet/get.php";
|
||||
static String addDriverPaymentPoints =
|
||||
"$seferPaymentServer/driverPayment/add.php";
|
||||
static String addPaymentTokenDriver =
|
||||
"$ride/driverWallet/addPaymentToken.php"; //driverWallet/addPaymentToken.php
|
||||
"$seferPaymentServer/driverWallet/addPaymentToken.php"; //driverWallet/addPaymentToken.php
|
||||
static String addPaymentTokenPassenger =
|
||||
"$ride/passengerWallet/addPaymentTokenPassenger.php";
|
||||
static String getDriverPaymentPoints = "$ride/driverWallet/get.php";
|
||||
static String getDriverPaymentToday = "$ride/payment/get.php";
|
||||
static String getCountRide = "$ride/payment/getCountRide.php";
|
||||
static String getAllPaymentFromRide = "$ride/payment/getAllPayment.php";
|
||||
static String getAllPaymentVisa = "$ride/payment/getAllPaymentVisa.php";
|
||||
"$seferPaymentServer/passengerWallet/addPaymentTokenPassenger.php";
|
||||
static String getDriverPaymentPoints =
|
||||
"$seferPaymentServer/driverWallet/get.php";
|
||||
static String getDriverPaymentToday = "$seferPaymentServer/payment/get.php";
|
||||
static String getCountRide = "$server/ride/payment/getCountRide.php";
|
||||
static String getAllPaymentFromRide =
|
||||
"$seferPaymentServer/payment/getAllPayment.php";
|
||||
static String getAllPaymentVisa =
|
||||
"$seferPaymentServer/payment/getAllPaymentVisa.php";
|
||||
|
||||
//-----------------Passenger NotificationCaptain------------------
|
||||
static String addNotificationPassenger =
|
||||
@@ -143,8 +167,9 @@ class AppLink {
|
||||
static String updateLicense = "$ride/license/updateFeedBack.php";
|
||||
//-----------------RegisrationCar------------------
|
||||
static String addRegisrationCar = "$ride/RegisrationCar/add.php";
|
||||
static String getRegisrationCar = "$ride/RegisrationCar/get.php";
|
||||
static String updateRegisrationCar = "$ride/RegisrationCar/update.php";
|
||||
static String getRegisrationCar = "$endPoint/ride/RegisrationCar/get.php";
|
||||
static String updateRegisrationCar =
|
||||
"$endPoint/ride/RegisrationCar/update.php";
|
||||
|
||||
//-----------------DriverOrder------------------
|
||||
|
||||
@@ -165,7 +190,8 @@ class AppLink {
|
||||
static String sendEmailToPassengerForTripDetails =
|
||||
"$ride/rides/emailToPassengerTripDetail.php";
|
||||
static String sendEmailToDrivertransaction =
|
||||
"https://api.sefer.live/sefer/Admin/sendEmailToDrivertransaction.php";
|
||||
"$seferPaymentServer0/Admin/sendEmailToDrivertransaction.php";
|
||||
// "https://api.sefer.live/sefer/Admin/sendEmailToDrivertransaction.php";
|
||||
// ===========================================
|
||||
static String pathImage = "$server/upload/types/";
|
||||
static String uploadImage = "$server/uploadImage.php";
|
||||
@@ -180,11 +206,18 @@ class AppLink {
|
||||
//==================certifcate==========
|
||||
static String location = '$server/ride/location';
|
||||
static String getCarsLocationByPassenger = "$location/get.php";
|
||||
static String addpassengerLocation = "$location/addpassengerLocation.php";
|
||||
static String getLatestLocationPassenger =
|
||||
"$location/getLatestLocationPassenger.php";
|
||||
static String getFemalDriverLocationByPassenger =
|
||||
"$location/getFemalDriver.php";
|
||||
static String getDriverCarsLocationToPassengerAfterApplied =
|
||||
"$location/getDriverCarsLocationToPassengerAfterApplied.php";
|
||||
static String addCarsLocationByPassenger = "$location/add.php";
|
||||
static String addCarsLocationGizaEndpoint =
|
||||
"https://sefergiza.site/archive%20(1)/add.php";
|
||||
static String addCarsLocationAlexandriaEndpoint = "$location/add.php";
|
||||
static String addCarsLocationCairoEndpoint = "$location/add.php";
|
||||
static String deleteCarsLocationByPassenger = "$location/delete.php";
|
||||
static String updateCarsLocationByPassenger = "$location/update.php";
|
||||
static String getTotalDriverDuration = "$location/getTotalDriverDuration.php";
|
||||
|
||||
Reference in New Issue
Block a user