Exemple #1
0
 public void markAsUnread(Preferences prefs) {
   setMarkedReadAt(Optional.empty());
   prefs.clearMarkedReadAt(getRepoId(), getId());
 }
Exemple #2
0
 public void markAsRead(Preferences prefs) {
   LocalDateTime now = LocalDateTime.now();
   setMarkedReadAt(Optional.of(now));
   prefs.setMarkedReadAt(getRepoId(), getId(), getMarkedReadAt().get());
 }