Ejemplo n.º 1
0
        public async void descargarListaPreUsosDelDia_SQLServer(string fecha, StartActicityOnRequestFinished callback)
        {
            callback.levantarBanderaPreUsos(false);

            Log.Info(TAG, "Se inicia descargar de Lista de Pre-Usos del dia desde SQLServer");

            RestClient <CheckListSummary> restClient = new RestClient <CheckListSummary>();
            var CheckLists = new List <CheckListSummary>();

            try
            {
                CheckLists = await restClient.GetCheckListSummariesByBrowser(TIPO_CHECKLISTSUMMARY, fecha);

                callback.levantarBanderaPreUsos(true);
                callback.compararListaPreUsos(CheckLists);
            }
            catch (Exception ex)
            {
                Log.Error("descargarListaCheckLists_SQLServer", ex.Message);
                callback.errorDescargaVehiculos();
            }
        }
Ejemplo n.º 2
0
        public async void descargarListaVehiculos_SQLServer(StartActicityOnRequestFinished callback)
        {
            callback.levantarBanderaVehiculos(false);

            Log.Info(TAG, "Se inicia descargar de Lista de Vehiculos de SQLServer");

            RestClient <Vehicle> restClient = new RestClient <Vehicle>();
            var vehiclesList = new List <Vehicle>();

            try
            {
                vehiclesList = await restClient.GetAsync(TIPO_VEHICLES);

                callback.levantarBanderaVehiculos(true);
                callback.compararListaVehiculos(vehiclesList);
            }
            catch (Exception ex)
            {
                Log.Error("descargarListaVehiculos_SQLServer", ex.Message);
                callback.errorDescargaVehiculos();
            }
        }