Ejemplo n.º 1
0
    /// <summary>
    /// Works without any of the Firebase plugins (Pure Web requests)
    /// Customized for every one bundle name in separate
    /// </summary>
    private async Task GetUrl(string bundleName, UrlAsStringReference urlToSet, System.Object options)
    {
        var master = App.GetController <DownloadMetaDataFromFirebase>();

        if (master.actualDataBase == null)
        {
            await master.GetAllUrls(new IDisposableObject(), master.MainUrl);
        }
        CheckIfNull(master, bundleName, urlToSet);
    }
Ejemplo n.º 2
0
    private void CheckIfNull(DownloadMetaDataFromFirebase handler, string bundleName, UrlAsStringReference urlToSet)
    {
        // append .json at the end for Rest API Firebase (Get request,only read)
        string urlDownload = null;

        for (int i = 0; i < handler.actualDataBase.Urls.Count; i++)
        {
            if (handler.actualDataBase.Urls[i].Name.ToLower().Equals(bundleName))
            {
                urlDownload = handler.actualDataBase.Urls[i].Url;
                break;
            }
        }
        urlToSet.url = urlDownload;
    }
Ejemplo n.º 3
0
 protected override Task GetUrlAsTask(string bundleName, UrlAsStringReference urlToSet, object options)
 {
     return(GetUrl(bundleName, urlToSet, options));
 }