Пример #1
0
  @Override
  public boolean removeFromWatchlist(Geocache cache) {
    final boolean removed = OkapiClient.setWatchState(cache, false, this);

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

    return removed;
  }
Пример #2
0
  @Override
  public boolean addToWatchlist(Geocache cache) {
    final boolean added = OkapiClient.setWatchState(cache, true, this);

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

    return added;
  }