Пример #1
0
    IEnumerator test()
    {
        Boxer <TotalSpreadSheet> bout = new Boxer <TotalSpreadSheet>(null);

        yield return(RefTable_google.GetDBFromWWW(bout).VPlay());

        var downloaded_spreadsheet = bout.value;
    }
Пример #2
0
    public IEnumerator Initialize()
    {
        if (RefTable_google.HowMuchTimeFlowedLastDownloaded > System.TimeSpan.FromDays(1))
        {
            Boxer <TotalSpreadSheet> box = new Boxer <TotalSpreadSheet>(null);
            yield return(RefTable_google.GetDBFromWWW(box).VPlay());

            prefs.Value = Util.ZipString(box.value.ToString());
            total_data  = box.value;
        }
        else
        {
            var unzip = Util.UnzipString(prefs.Value);
            var dic   = MiniJSON.Json.Deserialize(unzip) as Dictionary <string, object>;
            total_data = new TotalSpreadSheet(dic);
        }
    }