public void insertFollowers(List<User> users) { try { String noti = ActivityDataSource.getInstance(context).insertNewFollowers(users, currentAccount); notificationItems.add(noti); } catch (Throwable t) { } }
public void insertMentions(List<Status> mentions) { try { List<String> notis = ActivityDataSource.getInstance(context).insertMentions(mentions, currentAccount); notificationItems.addAll(notis); } catch (Throwable t) { } }
public boolean tryInsertFavorites(Status status) { try { String noti = ActivityDataSource.getInstance(context).insertFavoriters(status, currentAccount); if (noti != null) { notificationItems.add(noti); return true; } else { return false; } } catch (Throwable t) { return false; } }