public override async Task AddSavedThing(string thingId)
{
try
{
if (_settingsService.IsOnline() && (await _userService.GetUser()).Username != null)
await base.AddSavedThing(thingId);
else
await _offlineService.EnqueueAction("AddSavedThing", new Dictionary<string, string> { { "thingId", thingId } });
}
catch (TaskCanceledException)
{
throw;
}
catch (Exception ex)
{
_notificationService.CreateErrorNotification(ex);
_offlineService.EnqueueAction("AddSavedThing", new Dictionary<string, string> { { "thingId", thingId } }).Start();
}
}