X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FSoneOptions.java;h=b5e42eede3020c749b8a7f20f5a917fe9d5092f8;hb=ab14aa498b45ecd2222b03d6c3607461a0ceb3f4;hp=4abf16f9228061d4bfa3e0917d495efdcfd0e4ee;hpb=18a45f362d69085b12fe3028e9320578e10cc968;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/data/SoneOptions.java b/src/main/java/net/pterodactylus/sone/data/SoneOptions.java index 4abf16f..b5e42ee 100644 --- a/src/main/java/net/pterodactylus/sone/data/SoneOptions.java +++ b/src/main/java/net/pterodactylus/sone/data/SoneOptions.java @@ -1,6 +1,6 @@ package net.pterodactylus.sone.data; -import static net.pterodactylus.sone.data.SoneOptions.ShowCustomAvatars.NEVER; +import static net.pterodactylus.sone.data.SoneOptions.LoadExternalContent.NEVER; /** * All Sone-specific options. @@ -24,15 +24,15 @@ public interface SoneOptions { boolean isShowNewReplyNotifications(); void setShowNewReplyNotifications(boolean showNewReplyNotifications); - ShowCustomAvatars getShowCustomAvatars(); - void setShowCustomAvatars(ShowCustomAvatars showCustomAvatars); + LoadExternalContent getShowCustomAvatars(); + void setShowCustomAvatars(LoadExternalContent showCustomAvatars); /** - * The possible values for the “show custom avatars” option. + * Possible values for all options that are related to loading external content. * * @author David ‘Bombe’ Roden */ - enum ShowCustomAvatars { + enum LoadExternalContent { /** Never show custom avatars. */ NEVER, @@ -63,7 +63,7 @@ public interface SoneOptions { private boolean showNewSoneNotifications = true; private boolean showNewPostNotifications = true; private boolean showNewReplyNotifications = true; - private ShowCustomAvatars showCustomAvatars = NEVER; + private LoadExternalContent showCustomAvatars = NEVER; @Override public boolean isAutoFollow() { @@ -116,12 +116,12 @@ public interface SoneOptions { } @Override - public ShowCustomAvatars getShowCustomAvatars() { + public LoadExternalContent getShowCustomAvatars() { return showCustomAvatars; } @Override - public void setShowCustomAvatars(ShowCustomAvatars showCustomAvatars) { + public void setShowCustomAvatars(LoadExternalContent showCustomAvatars) { this.showCustomAvatars = showCustomAvatars; }