Update: 2026-06-12 01:23:54
This commit is contained in:
@@ -3,54 +3,108 @@ import 'package:siro_rider/main.dart';
|
||||
|
||||
class AppLink {
|
||||
static const String appDomain = 'siromove.com';
|
||||
///https://walletintaleq.intaleq.xyz/v1/main
|
||||
static String get paymentServer => 'https://walletintaleq.intaleq.xyz/v2/main';
|
||||
|
||||
///https://api.intaleq.xyz/siro/ride/location
|
||||
static String get location => 'https://api.intaleq.xyz/siro_v3/ride/location';
|
||||
|
||||
/// هذا الرابط خاص برحلات الركاب، ويستخدمه السيرفر الجانبي للرحلات (Ride Server Side) للتعامل مع عمليات إلغاء الرحلات وتحديث حالة الرحلات وغيرها من العمليات المتعلقة بالرحلات.
|
||||
/// https://routesy.intaleq.xyz for syria
|
||||
/// for jordan https://routesjo.intaleq.xyz
|
||||
static String get routesOsm => 'https://routesy.intaleq.xyz';
|
||||
static String get mapSaasRoute => 'https://map-saas.intaleqapp.com/api/maps/route';
|
||||
static String get reverseGeocoding =>
|
||||
'https://map-saas.intaleqapp.com/api/geocoding/reverse';
|
||||
static String get searchGeocoding =>
|
||||
'https://map-saas.intaleqapp.com/api/geocoding/search';
|
||||
static String get mapSaasPlaces =>
|
||||
'https://map-saas.intaleqapp.com/api/geocoding/places';
|
||||
|
||||
///https://location.intaleq.xyz/siro/ride/location
|
||||
///locationServerSide هو السيرفر الجانبي الخاص بموقع السائقين، حيث يتم إرسال تحديثات الموقع من التطبيق إلى هذا السيرفر، ومن ثم يقوم هذا السيرفر بتوزيع هذه التحديثات إلى الركاب المتصلين الذين يتابعون السائق في الوقت الحقيقي.
|
||||
static String get locationServerSide =>
|
||||
'https://location.intaleq.xyz/siro/ride/location';
|
||||
|
||||
static String get currentCountry => box.read(BoxName.countryCode) ?? 'Jordan';
|
||||
|
||||
///https://api.intaleq.xyz/siro
|
||||
static String get endPoint => server;
|
||||
|
||||
/// هذا الرابط خاص برحلات الركاب، ويستخدمه السيرفر الجانبي للرحلات (Ride Server Side) للتعامل مع عمليات إلغاء الرحلات وتحديث حالة الرحلات وغيرها من العمليات المتعلقة بالرحلات.
|
||||
/// https://rides.intaleq.xyz/siro
|
||||
static String get rideServerSide => 'https://rides.intaleq.xyz/siro';
|
||||
|
||||
/// main api link for all api calls except rides and location
|
||||
static String get server {
|
||||
static String get paymentServer {
|
||||
switch (currentCountry) {
|
||||
case 'Syria':
|
||||
return 'https://api-syria.siromove.com/siro_v3';
|
||||
case 'Egypt':
|
||||
return 'https://api-egypt.siromove.com/siro_v3';
|
||||
case 'Jordan':
|
||||
default:
|
||||
return 'https://api-jordan.siromove.com/siro_v3';
|
||||
case 'Syria': return 'https://wallet-syria.siromove.com/v1/main';
|
||||
case 'Egypt': return 'https://wallet-egypt.siromove.com/v1/main';
|
||||
case 'Jordan': return 'https://wallet-jordan.siromove.com/v1/main';
|
||||
default: return 'https://wallet.siromove.com/v1/main';
|
||||
}
|
||||
}
|
||||
|
||||
///https://rides.intaleq.xyz
|
||||
/// هذا الرابط خاص برحلات الركاب، ويستخدمه السيرفر الجانبي للرحلات (Ride Server Side) للتعامل مع عمليات إلغاء الرحلات وتحديث حالة الرحلات وغيرها من العمليات المتعلقة بالرحلات.
|
||||
static String get serverSocket => 'https://rides.intaleq.xyz';
|
||||
static String get location {
|
||||
switch (currentCountry) {
|
||||
case 'Syria': return 'https://api-syria.siromove.com/siro_v3/ride/location';
|
||||
case 'Egypt': return 'https://api-egypt.siromove.com/siro_v3/ride/location';
|
||||
case 'Jordan': return 'https://api-jordan.siromove.com/siro_v3/ride/location';
|
||||
default: return 'https://api.siromove.com/siro_v3/ride/location';
|
||||
}
|
||||
}
|
||||
|
||||
static String get locationServerSide {
|
||||
switch (currentCountry) {
|
||||
case 'Syria': return 'https://location-syria.siromove.com/siro/ride/location';
|
||||
case 'Egypt': return 'https://location-egypt.siromove.com/siro/ride/location';
|
||||
case 'Jordan': return 'https://location-jordan.siromove.com/siro/ride/location';
|
||||
default: return 'https://location.siromove.com/siro/ride/location';
|
||||
}
|
||||
}
|
||||
|
||||
static String get routesOsm {
|
||||
switch (currentCountry) {
|
||||
case 'Syria': return 'https://routes-syria.siromove.com';
|
||||
case 'Egypt': return 'https://routes-egypt.siromove.com';
|
||||
case 'Jordan': return 'https://routes-jordan.siromove.com';
|
||||
default: return 'https://routes.siromove.com';
|
||||
}
|
||||
}
|
||||
|
||||
static String get mapSaasRoute {
|
||||
switch (currentCountry) {
|
||||
case 'Syria': return 'https://map-syria.siromove.com/api/maps/route';
|
||||
case 'Egypt': return 'https://map-egypt.siromove.com/api/maps/route';
|
||||
case 'Jordan': return 'https://map-jordan.siromove.com/api/maps/route';
|
||||
default: return 'https://map-saas.intaleqapp.com/api/maps/route';
|
||||
}
|
||||
}
|
||||
|
||||
static String get reverseGeocoding {
|
||||
switch (currentCountry) {
|
||||
case 'Syria': return 'https://map-syria.siromove.com/api/geocoding/reverse';
|
||||
case 'Egypt': return 'https://map-egypt.siromove.com/api/geocoding/reverse';
|
||||
case 'Jordan': return 'https://map-jordan.siromove.com/api/geocoding/reverse';
|
||||
default: return 'https://map-saas.intaleqapp.com/api/geocoding/reverse';
|
||||
}
|
||||
}
|
||||
|
||||
static String get searchGeocoding {
|
||||
switch (currentCountry) {
|
||||
case 'Syria': return 'https://map-syria.siromove.com/api/geocoding/search';
|
||||
case 'Egypt': return 'https://map-egypt.siromove.com/api/geocoding/search';
|
||||
case 'Jordan': return 'https://map-jordan.siromove.com/api/geocoding/search';
|
||||
default: return 'https://map-saas.intaleqapp.com/api/geocoding/search';
|
||||
}
|
||||
}
|
||||
|
||||
static String get mapSaasPlaces {
|
||||
switch (currentCountry) {
|
||||
case 'Syria': return 'https://map-syria.siromove.com/api/geocoding/places';
|
||||
case 'Egypt': return 'https://map-egypt.siromove.com/api/geocoding/places';
|
||||
case 'Jordan': return 'https://map-jordan.siromove.com/api/geocoding/places';
|
||||
default: return 'https://map-saas.intaleqapp.com/api/geocoding/places';
|
||||
}
|
||||
}
|
||||
|
||||
static String get endPoint => server;
|
||||
|
||||
static String get rideServerSide {
|
||||
switch (currentCountry) {
|
||||
case 'Syria': return 'https://api-syria.siromove.com/siro';
|
||||
case 'Egypt': return 'https://api-egypt.siromove.com/siro';
|
||||
case 'Jordan': return 'https://api-jordan.siromove.com/siro';
|
||||
default: return 'https://api.siromove.com/siro';
|
||||
}
|
||||
}
|
||||
|
||||
static String get server {
|
||||
switch (currentCountry) {
|
||||
case 'Syria': return 'https://api-syria.siromove.com/siro_v3';
|
||||
case 'Egypt': return 'https://api-egypt.siromove.com/siro_v3';
|
||||
case 'Jordan': return 'https://api-jordan.siromove.com/siro_v3';
|
||||
default: return 'https://api.siromove.com/siro_v3';
|
||||
}
|
||||
}
|
||||
|
||||
static String get serverSocket {
|
||||
switch (currentCountry) {
|
||||
case 'Syria': return 'https://api-syria.siromove.com';
|
||||
case 'Egypt': return 'https://api-egypt.siromove.com';
|
||||
case 'Jordan': return 'https://api-jordan.siromove.com';
|
||||
default: return 'https://api.siromove.com';
|
||||
}
|
||||
}
|
||||
|
||||
///
|
||||
static String get googleMapsLink => 'https://maps.googleapis.com/maps/api/';
|
||||
|
||||
Reference in New Issue
Block a user