Beispiel #1
0
        public async Task <CQuerieResult> GetqueriesResult(string database, string projectuid, string layer, string lcid, string target, string start_objid)
        {
            if (m_Platform.IsOnline)
            {
                var tmp = await m_ComosWebOnline.GetqueriesResult(database, projectuid, layer, lcid, target, start_objid);

                if (tmp != null)
                {
                    string url = m_Url + "dbs/" + database + "/projects/" + projectuid + "/queries/" + target + "/result?lcid=" + lcid + "&overlayid=" + layer;
                    if (start_objid != null)
                    {
                        url += "&start_objid=" + start_objid;
                    }
                    string output = Newtonsoft.Json.JsonConvert.SerializeObject(tmp);
                    m_Database.WriteUrlCache(url, output);
                    return(tmp);
                }
            }
            return(await m_ComosWebOffline.GetqueriesResult(database, projectuid, layer, lcid, target, start_objid));
        }