public JsonResult Distance(Exponent.ADSB.ADSBQuery QueryData) { var ADSB = new Exponent.ADSB.Live(); var Data = ADSB.GetFlightStatus(DSN, QueryData); return(Json(Data, JsonRequestBehavior.AllowGet)); }
public JsonResult Summary(int LastProcessedID = 0, Double TimezoneOffset = 0) { var ADSB = new Exponent.ADSB.Live(); var Data = ADSB.GetSummary(DSN, LastProcessedID, 20, TimezoneOffset); return(Json(Data, JsonRequestBehavior.AllowGet)); }
public JsonResult Index(Exponent.ADSB.ADSBQuery QueryData) { var ADSB = new Exponent.ADSB.Live(); var Data = ADSB.FlightStat(DSN, false, QueryData); return(Json(Data, JsonRequestBehavior.AllowGet)); }
public JsonResult ADSBHistory(DateTime History) { if (!exLogic.User.hasAccess("FLIGHT.MAP")) { var oResult = new { Status = "Error", Message = "Do not have access" }; return(Json(oResult, JsonRequestBehavior.AllowGet)); } var ADSB = new Exponent.ADSB.Live(); var Data = ADSB.ADSBHistory(DSN, History); // var Data = ""; return(Json(Data, JsonRequestBehavior.AllowGet)); }
public JsonResult ADSBData() { if (!exLogic.User.hasAccess("FLIGHT.MAP")) { var oResult = new { Status = "Error", Message = "Do not have access" }; return(Json(oResult, JsonRequestBehavior.AllowGet)); } Exponent.ADSB.ADSBQuery QueryData = new Exponent.ADSB.ADSBQuery(); using (SqlConnection CN = new SqlConnection(DSN)) { CN.Open(); QueryData.GetDefaults(CN); CN.Close(); } var ADSB = new Exponent.ADSB.Live(); var Data = ADSB.FlightStat(DSN, false, QueryData); // var Data = ""; return(Json(Data, JsonRequestBehavior.AllowGet)); }