1 package net.pterodactylus.sone.data;
3 import static net.pterodactylus.sone.data.Sone.ShowCustomAvatars.NEVER;
5 import net.pterodactylus.sone.data.Sone.ShowCustomAvatars;
8 * All Sone-specific options.
10 * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
12 public interface SoneOptions {
14 boolean isAutoFollow();
15 void setAutoFollow(boolean autoFollow);
17 boolean isSoneInsertNotificationEnabled();
18 void setSoneInsertNotificationEnabled(boolean soneInsertNotificationEnabled);
20 boolean isShowNewSoneNotifications();
21 void setShowNewSoneNotifications(boolean showNewSoneNotifications);
23 boolean isShowNewPostNotifications();
24 void setShowNewPostNotifications(boolean showNewPostNotifications);
26 boolean isShowNewReplyNotifications();
27 void setShowNewReplyNotifications(boolean showNewReplyNotifications);
29 ShowCustomAvatars getShowCustomAvatars();
30 void setShowCustomAvatars(ShowCustomAvatars showCustomAvatars);
33 * {@link SoneOptions} implementation.
35 * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
37 public class DefaultSoneOptions implements SoneOptions {
39 private boolean autoFollow = false;
40 private boolean soneInsertNotificationsEnabled = false;
41 private boolean showNewSoneNotifications = true;
42 private boolean showNewPostNotifications = true;
43 private boolean showNewReplyNotifications = true;
44 private ShowCustomAvatars showCustomAvatars = NEVER;
47 public boolean isAutoFollow() {
52 public void setAutoFollow(boolean autoFollow) {
53 this.autoFollow = autoFollow;
57 public boolean isSoneInsertNotificationEnabled() {
58 return soneInsertNotificationsEnabled;
62 public void setSoneInsertNotificationEnabled(boolean soneInsertNotificationEnabled) {
63 this.soneInsertNotificationsEnabled = soneInsertNotificationEnabled;
67 public boolean isShowNewSoneNotifications() {
68 return showNewSoneNotifications;
72 public void setShowNewSoneNotifications(boolean showNewSoneNotifications) {
73 this.showNewSoneNotifications = showNewSoneNotifications;
77 public boolean isShowNewPostNotifications() {
78 return showNewPostNotifications;
82 public void setShowNewPostNotifications(boolean showNewPostNotifications) {
83 this.showNewPostNotifications = showNewPostNotifications;
87 public boolean isShowNewReplyNotifications() {
88 return showNewReplyNotifications;
92 public void setShowNewReplyNotifications(boolean showNewReplyNotifications) {
93 this.showNewReplyNotifications = showNewReplyNotifications;
97 public ShowCustomAvatars getShowCustomAvatars() {
98 return showCustomAvatars;
102 public void setShowCustomAvatars(ShowCustomAvatars showCustomAvatars) {
103 this.showCustomAvatars = showCustomAvatars;