| | 1 | | using UnityEngine; |
| | 2 | |
|
| | 3 | | namespace DCL |
| | 4 | | { |
| | 5 | | public class ContentProvider_Dummy : ContentProvider |
| | 6 | | { |
| 8 | 7 | | public override bool HasContentsUrl(string url) { return !string.IsNullOrEmpty(url); } |
| | 8 | |
|
| | 9 | | public override bool TryGetContentsUrl(string url, out string result) |
| | 10 | | { |
| 39 | 11 | | result = url; |
| | 12 | |
|
| 39 | 13 | | if (string.IsNullOrEmpty(url)) |
| | 14 | | { |
| 0 | 15 | | return false; |
| | 16 | | } |
| | 17 | |
|
| 39 | 18 | | if (!string.IsNullOrEmpty(baseUrl)) |
| 0 | 19 | | result = baseUrl + "/" + url; |
| | 20 | | else |
| 39 | 21 | | result = url; |
| | 22 | |
|
| 39 | 23 | | if (VERBOSE) |
| | 24 | | { |
| 0 | 25 | | Debug.Log($">>> GetContentsURL from ... {url} ... RESULTING URL... = {result}"); |
| | 26 | | } |
| | 27 | |
|
| 39 | 28 | | return true; |
| | 29 | | } |
| | 30 | | } |
| | 31 | | } |