Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockSettings.java

Issue 29361445: Issue 4399 - Add WebView inheritor with ad blocking (Closed)
Patch Set: renamings, updated README Created Dec. 19, 2016, 3:04 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH
4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation.
8 *
9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 package org.adblockplus.libadblockplus.android.settings;
19
20 import org.adblockplus.libadblockplus.android.Subscription;
21
22 import java.io.Serializable;
23 import java.util.List;
24
25 /**
26 * Adblock settings
27 */
28 public class AdblockSettings implements Serializable
29 {
30 private transient boolean adblockEnabled;
31 private transient Boolean acceptableAdsEnabled;
32 private List<Subscription> subscriptions;
33 private List<String> whitelistedDomains;
34
35 public boolean isAdblockEnabled()
36 {
37 return adblockEnabled;
38 }
39
40 public void setAdblockEnabled(boolean adblockEnabled)
41 {
42 this.adblockEnabled = adblockEnabled;
43 }
44
45 public boolean isAcceptableAdsEnabled()
46 {
47 return acceptableAdsEnabled;
48 }
49
50 public void setAcceptableAdsEnabled(boolean acceptableAdsEnabled)
51 {
52 this.acceptableAdsEnabled = acceptableAdsEnabled;
53 }
54
55 public List<Subscription> getSubscriptions()
56 {
57 return subscriptions;
58 }
59
60 public void setSubscriptions(List<Subscription> subscriptions)
61 {
62 this.subscriptions = subscriptions;
63 }
64
65 public List<String> getWhitelistedDomains()
66 {
67 return whitelistedDomains;
68 }
69
70 public void setWhitelistedDomains(List<String> whitelistedDomains)
71 {
72 this.whitelistedDomains = whitelistedDomains;
73 }
74
75 @Override
76 public String toString()
77 {
78 return "AdblockSettings{" +
79 "adblockEnabled=" + adblockEnabled +
80 ", acceptableAdsEnabled=" + acceptableAdsEnabled +
81 ", subscriptions:" + (subscriptions != null ? subscriptions.size() : 0) +
82 ", whitelistedDomains:" + (whitelistedDomains != null ? whitelistedDomains .size() : 0) +
83 '}';
84 }
85 }
OLDNEW

Powered by Google App Engine
This is Rietveld