Ejemplo n.º 1
0
        /// <summary>
        /// Get updates from server
        /// </summary>
        /// <param name="date"></param>
        /// <returns></returns>
        private async Task GetUpdates(DateTime date)
        {
            var updateModel = await RESTHelper.GetUpdatesAsync(date);

            SyncDate       = updateModel.UpdateTime;
            UpdateDataList = updateModel.Updates;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Get updates from server
        /// </summary>
        /// <param name="date"></param>
        /// <returns></returns>
        private async Task <bool> GetUpdates(DateTime date)
        {
            try
            {
                var updateModel = await RESTHelper.GetUpdatesAsync(date);

                SyncDate       = updateModel.UpdateTime;
                UpdateDataList = updateModel.Updates;
            }
            catch (Exception)
            {
                return(false);
            }

            return(true);
        }