/// <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; }
/// <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); }