| | 1 | | using System.Collections; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using DCL.Configuration; |
| | 4 | | using UnityEngine; |
| | 5 | | using UnityEngine.SocialPlatforms.Impl; |
| | 6 | |
|
| | 7 | | public static class BIWUrlUtils |
| | 8 | | { |
| 109 | 9 | | public static string GetUrlSceneObjectContent() { return BIWSettings.BASE_URL_SCENE_OBJECT_CONTENT.Replace("{ENV}", |
| | 10 | |
|
| | 11 | | public static string GetUrlCatalog(string ethAddress) |
| | 12 | | { |
| 0 | 13 | | string paramToAdd = "default"; |
| 0 | 14 | | if (!string.IsNullOrEmpty(ethAddress)) |
| 0 | 15 | | paramToAdd = ethAddress; |
| 0 | 16 | | return BIWSettings.BASE_URL_CATALOG.Replace("{ENV}", GetEnvBase()) + paramToAdd; |
| | 17 | | } |
| | 18 | |
|
| 32 | 19 | | public static string GetUrlAssetPackContent() { return BIWSettings.BASE_URL_ASSETS_PACK_CONTENT.Replace("{ENV}", Get |
| | 20 | |
|
| | 21 | | private static string GetEnvBase() |
| | 22 | | { |
| 141 | 23 | | if (KernelConfig.i.Get().network == "mainnet") |
| 141 | 24 | | return "org"; |
| | 25 | |
|
| 0 | 26 | | return "io"; |
| | 27 | | } |
| | 28 | | } |