예제 #1
0
        private async Task <DateTime> UltimaAtualizacao()
        {
            SpreadsheetUpdateInfo infoUpdate;
            DateTime?lastUpdateDt;

            try
            {
                infoUpdate = await getInfo.GetSpreadsheetUpdateInfoAsync();

                lastUpdateDt = infoUpdate.UltimaAtualizacao.ToLocalTime();
            }
            catch (Exception e)
            {
                await DisplayAlert("Erro", $"Erro - {e.Message}", "OK");

                lastUpdateDt = null;
            }

            return(lastUpdateDt.Value);
        }