private async Task NavigatedToOfflineableThingImpl(Model.Reddit.Thing targetThing, bool link)
{
//if we've offlined this thing, we need to pat ourselves on the back
//because we got it right
if (targetThing != null && targetThing.Data is Link)
{
var targetLink = targetThing.Data as Link;
try
{
if(!string.IsNullOrWhiteSpace(targetLink.Domain))
await _offlineService.IncrementDomainStatistic(targetLink.Domain, link);
if (!string.IsNullOrWhiteSpace(targetLink.SubredditId))
await _offlineService.IncrementSubredditStatistic(targetLink.SubredditId, link);
}
catch
{
//dont care what the error is, this isnt an acceptable place to fail or present the user with a failure
}
}
}