예제 #1
0
        private void POSTToDAOGetAllDates(ref List <CovidDate> oCovidDateList)
        {
            DAOModelPOST oDAOModelPOST = new DAOModelPOST(UtilsConstants.POSTMethodsConstants.GET_ALL_DATES, null);

            oCovidDateList = UtilsJSON.GetInstance().DeserializeFromPOSTUrl(
                oCovidDateList, UtilsConstants.UrlConstants.URL_DATA_REST, oDAOModelPOST).Result;
        }
예제 #2
0
        private void POSTToDAOGetAllGeoZoneForAllDates(ref List <GeoZone> pAllGeoZoneList)
        {
            DAOModelPOST oDAOModelPOST = new DAOModelPOST(
                UtilsConstants.POSTMethodsConstants.GET_ALL_GEO_ZONE_FOR_ALL_DATES,
                null);

            pAllGeoZoneList = UtilsJSON.GetInstance().DeserializeFromPOSTUrl(
                pAllGeoZoneList, UtilsConstants.UrlConstants.URL_DATA_REST, oDAOModelPOST).Result;
        }
예제 #3
0
        private async Task <object> GetFromDAO(CovidData pCovidData, string pMethod)
        {
            DAOModelPOST oDAOModelPOST = new DAOModelPOST(pMethod, pCovidData);

            return(await UtilsHTTP.GetInstance().POSTJsonAsyncToURL(UtilsConstants.UrlConstants.URL_DATA_REST, oDAOModelPOST));
        }