| Index: libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockSettings.java |
| diff --git a/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockSettings.java b/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockSettings.java |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a9c8ae58f9b1c8f2c6b45823068ee00adc19e8f6 |
| --- /dev/null |
| +++ b/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockSettings.java |
| @@ -0,0 +1,88 @@ |
| +/* |
| + * This file is part of Adblock Plus <https://adblockplus.org/>, |
| + * Copyright (C) 2006-2016 Eyeo GmbH |
| + * |
| + * Adblock Plus is free software: you can redistribute it and/or modify |
| + * it under the terms of the GNU General Public License version 3 as |
| + * published by the Free Software Foundation. |
| + * |
| + * Adblock Plus is distributed in the hope that it will be useful, |
| + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| + * GNU General Public License for more details. |
| + * |
| + * You should have received a copy of the GNU General Public License |
| + * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| + */ |
| + |
| +package org.adblockplus.libadblockplus.android.settings; |
| + |
| +import org.adblockplus.libadblockplus.android.Subscription; |
| + |
| +import java.io.Serializable; |
| +import java.util.List; |
| + |
| +/** |
| + * Adblock settings |
| + */ |
| +public class AdblockSettings implements Serializable |
| +{ |
| + private transient boolean adblockEnabled; |
| + |
| + public boolean isAdblockEnabled() |
| + { |
| + return adblockEnabled; |
| + } |
| + |
| + public void setAdblockEnabled(boolean adblockEnabled) |
| + { |
| + this.adblockEnabled = adblockEnabled; |
| + } |
| + |
| + private transient Boolean acceptableAdsEnabled; |
| + |
| + public boolean isAcceptableAdsEnabled() |
| + { |
| + return acceptableAdsEnabled; |
| + } |
| + |
| + public void setAcceptableAdsEnabled(boolean acceptableAdsEnabled) |
| + { |
| + this.acceptableAdsEnabled = acceptableAdsEnabled; |
| + } |
| + |
| + private List<Subscription> subscriptions; |
| + |
| + public List<Subscription> getSubscriptions() |
| + { |
| + return subscriptions; |
| + } |
| + |
| + public void setSubscriptions(List<Subscription> subscriptions) |
| + { |
| + this.subscriptions = subscriptions; |
| + } |
| + |
| + private List<String> whitelistedDomains; |
| + |
| + public List<String> getWhitelistedDomains() |
| + { |
| + return whitelistedDomains; |
| + } |
| + |
| + public void setWhitelistedDomains(List<String> whitelistedDomains) |
| + { |
| + this.whitelistedDomains = whitelistedDomains; |
| + } |
| + |
| + @Override |
| + public String toString() |
| + { |
| + return "AdblockSettings{" + |
| + "adblockEnabled=" + adblockEnabled + |
| + ", acceptableAdsEnabled=" + acceptableAdsEnabled + |
| + ", subscriptions:" + (subscriptions != null ? subscriptions.size() : 0) + |
| + ", whitelistedDomains:" + (whitelistedDomains != null ? whitelistedDomains.size() : 0) + |
| + '}'; |
| + } |
| +} |