import 'dart:io';

import 'package:location/data/repositories/account_repository.dart';

class WebUrl {
  WebUrl._();

  static const String _privacyPolicy =
      "https://doc.v8dashen.com/doc/bad49f15215daa70";

  static const String _privacyPolicyIos =
      "https://doc.v8dashen.com/doc/7aed0a2b23a10f44";

  static const String _userAgreement =
      "https://doc.v8dashen.com/doc/546b8b5175a1b4db";

  static const String _userAgreementIos =
      "https://doc.v8dashen.com/doc/9ac4289f64ac276a";

  static const String _shareUrl = "https://ssdw.myaskai.cn/#/";

  static const String _customUrl = "https://qiyu-kefu.atmob.com";

  static String renewalAgreement =
      Platform.isIOS ? "https://doc.v8dashen.com/doc/4e69dec06586d0f1" : '';

  static String get privacyPolicy => Platform.isIOS? _privacyPolicyIos : _privacyPolicy;

  static String get userAgreement => Platform.isIOS? _userAgreementIos : _userAgreement;

  static String get shareUrl => _shareUrl;

  static String get customUrl {
    return "$_customUrl?ssid=${AccountRepository.getInstance()}&device_id={device_id}&app_platform=5&app_version={app_version}&package_name={package_name}&app_name={app_name}";
  }
}
