Exemplo n.º 1
0
 private int getJumpCount(string origin, string destination)
 {
     try
     {
         string res   = EVEApi.getRoute(origin, destination);
         JArray array = Newtonsoft.Json.JsonConvert.DeserializeObject <JArray>(res);
         return(array.Count);
     }
     catch
     {
         return(-1);
     }
 }
Exemplo n.º 2
0
        private QuicklookResult GetOrders(string typeId)
        {
            XML_JSON xML_JSON = new XML_JSON();
            Param    param    = new Param();

            param.typeid = typeId;
            // param.usesystem = "30000142";


            try
            {
                string          xml    = EVEApi.QuickLook(param);
                string          json   = xML_JSON.XML2Json(xml, "evec_api/quicklook");
                QuicklookResult result = Newtonsoft.Json.JsonConvert.DeserializeObject <QuicklookResult>(json);
                return(result);
            }
            catch
            {
                return(null);
            }
        }
Exemplo n.º 3
0
 private void button6_Click(object sender, EventArgs e)
 {
     JArray array = Newtonsoft.Json.JsonConvert.DeserializeObject <JArray>(EVEApi.getRoute("60013867", "30003830"));
     int    i     = array.Count;
 }