Esempio n. 1
0
  @Override
  public boolean removeFromWatchlist(Geocache cache) {
    final boolean removed = OkapiClient.setWatchState(cache, false, this);

    if (removed) {
      cgData.saveChangedCache(cache);
    }

    return removed;
  }
Esempio n. 2
0
  @Override
  public boolean addToWatchlist(Geocache cache) {
    final boolean added = OkapiClient.setWatchState(cache, true, this);

    if (added) {
      cgData.saveChangedCache(cache);
    }

    return added;
  }