Class UpdateOwnUserSettingsApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.user.request.UpdateOwnUserSettingsApiRequest
- All Implemented Interfaces:
ExecutableApiRequest<List<String>>
public class UpdateOwnUserSettingsApiRequest
extends ZulipApiRequest
implements ExecutableApiRequest<List<String>>
Zulip API request builder for updating own user settings.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute()Executes the Zulip API request for updating own user settings.withAllowPrivateDataExport(boolean allowPrivateDataExport) Sets whether organization administrators are allowed to export private data.withColorScheme(ColorScheme colorScheme) Sets whether stream desktop notifications should be enabled.withDefaultLanguage(String languageCode) Sets the default language to use.withDefaultView(WebHomeView webHomeView) Sets the default view to use.withDemoteInactiveStreams(DemoteInactiveStreamOption demoteInactiveStreamOption) Sets whether to demote inactive streams.withDesktopIconCountDisplay(DesktopIconCountDisplay desktopIconCountDisplay) Sets whether to display an unread count summary on the Zulip UI.withDisplayEmojiReactionUsers(boolean displayEmojiReactionUsers) Sets whether to display the names of reacting users on a message.Asks the Zulip server to initiate a confirmation sequence to change the user email address.withEmailNotificationsBatchingPeriodSeconds(int duration) Sets the duration in seconds for which the Zulip server should wait to batch email notifications before sending them.withEmojiSet(EmojiSet emojiSet) The emoji set used to display emoji on the Zulip UI.withEnableDesktopNotifications(boolean enable) Sets whether desktop notifications are enabled.withEnableDigestEmails(boolean enable) Sets whether digest emails are enabled.withEnableDraftsSynchronization(boolean enable) Sets whether synchronizing drafts is enabled.withEnableLoginEmails(boolean enable) Sets whether login emails are enabled.withEnableMarketingEmails(boolean enable) Sets whether to enable marketing emails.withEnableOfflineEmailNotifications(boolean enable) Sets whether offline email notifications are enabled.withEnableOfflinePushNotifications(boolean enable) Sets whether offline push notifications are enabled.withEnableOnlinePushNotifications(boolean enable) Sets whether online push notifications are enabled.withEnableSounds(boolean enable) Sets whether sounds are enabled.withEnableStreamAudibleNotifications(boolean enable) Sets whether stream audible notifications should be enabled.withEnableStreamDesktopNotifications(boolean enable) Sets whether stream desktop notifications should be enabled.withEnableStreamEmailNotifications(boolean enable) Sets whether stream email notifications should be enabled.withEnableStreamPushNotifications(boolean enable) Sets whether stream push notifications should be enabled.withEnterSends(boolean enterSends) Sets whether pressing the enter key on the Zulip UI sends a message.withEscapeNavigatesToDefaultView(boolean escapeNavigatesToDefaultView) Sets whether pressing the escape key navigates to the default view.withFluidLayoutWidth(boolean fluidLayoutWidth) Whether to use the maximum available screen width for the Zulip web UI center panel.withFullName(String fullName) Sets a new display name for the user.withHideAiFeatures(boolean hideAiFeatures) Sets whether AI features like topic summarization should be hidden.withHighContrastMode(boolean highContrastMode) Whether to enable variations in the Zulip UI to help visually impaired users.withLeftSideUserList(boolean leftSideUserList) Whether the users list on left sidebar in narrow windows.withMessageContentInEmailNotifications(boolean messageContentInEmailNotifications) Sets whether message content is present in email notifications.withNewPassword(String newPassword) The new password for the current user.withNotificationSound(String notificationSound) Sets the notification sound.withOldPassword(String oldPassword) The old password for the current user.withPmContentInDesktopNotifications(boolean pmContentInDesktopNotifications) Sets whether private message content shows in desktop notifications.withPresenceEnabled(boolean enable) Sets whether to display the presence status to other users when online.Sets whether to include the organization name in the subject of message notification emails.withRealmNameInNotifications(boolean realmNameInNotifications) Deprecated.Use withRealmNameInEmailNotifications insteadwithReceivesTypingNotifications(boolean receivesTypingNotifications) Sets whether the user is configured to receive typing notifications from other users.withResolvedTopicNoticeAutoReadPolicy(ResolvedTopicNoticeAutoReadPolicy resolvedTopicNoticeAutoReadPolicy) Sets whether resolved topic notices are marked as read.withSendPrivateTypingNotifications(boolean sendPrivateTypingNotifications) Sets whether typing notifications be sent when composing private messages.withSendReadReceipts(boolean sendReadReceipts) Sets whether other users are allowed to see whether you have read messages.withSendStreamTypingNotifications(boolean sendStreamTypingNotifications) Sets whether typing notifications be sent when composing stream messages.withStarredMessageCounts(boolean starredMessageCounts) Sets whether to display the number of starred messages.withTimezone(String timezone) Sets the user configured timezone.withTranslateEmoticons(boolean translateEmoticons) Sets whether to translate emoticons to emoji in messages the user sends.withTwentyFourHourTime(boolean enable) Sets whether time should be displayed in 24-hour notation.withUserListStyle(UserListStyle userListStyle) Sets the style selected by the user for the right sidebar user list.withWebAnimateImagePreviews(WebAnimateImageOption webAnimateImageOption) Sets how animated images should be played in the message feed.withWebChannelDefaultView(WebChannelView webChannelView) Sets the default navigation behavior when clicking on a channel link.withWebFontPx(int fontSize) Sets the user primary font size in pixels.withWebLeftSidebarShowChannelFolders(boolean webLeftSidebarShowChannelFolders) Sets whether the left sidebar displays channel folders configured by the organization.withWebLeftSidebarUnreadsCountSummary(boolean webLeftSidebarUnreadsCountSummary) Sets whether the left sidebar displays the unread message count summary.withWebLineHeightPercent(int webLineHeightPercent) Sets the user primary line height for the Zulip web UI in percent.Sets whether to mark messages as read when the user scrolls through their feed.withWebNavigateToSentMessage(boolean webNavigateToSentMessage) Sets whether the user view should automatically go to the conversation where they sent a message.withWebSuggestUpdateTimezone(boolean webSuggestUpdateTimezone) Sets whether the user should be shown an alert, offering to update their profile time zone, when the time displayed for the profile time zone differs from the current time displayed by the time zone configured on their device.withWildcardMentionsNotify(boolean wildcardMentionsNotify) Sets whether to be notified when wildcard mentions are triggered.Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParam, getParams, putParam, putParamAsJsonString, putParamAsWrappedObject
-
Field Details
-
ALLOW_PRIVATE_DATA_EXPORT
- See Also:
-
COLOR_SCHEME
- See Also:
-
DEFAULT_LANGUAGE
- See Also:
-
DEFAULT_VIEW
- See Also:
-
DEMOTE_INACTIVE_STREAMS
- See Also:
-
DESKTOP_ICON_COUNT_DISPLAY
- See Also:
-
DISPLAY_EMOJI_REACTION_USERS
- See Also:
-
EMAIL
- See Also:
-
EMOJISET
- See Also:
-
ENABLE_DESKTOP_NOTIFICATIONS
- See Also:
-
ENABLE_DRAFTS_SYNCHRONIZATION
- See Also:
-
ENABLE_DIGEST_EMAILS
- See Also:
-
ENABLE_LOGIN_EMAILS
- See Also:
-
EMAIL_NOTIFICATIONS_BATCHING_PERIOD_SECONDS
- See Also:
-
ENABLE_MARKETING_EMAILS
- See Also:
-
ENABLE_OFFLINE_EMAIL_NOTIFICATIONS
- See Also:
-
ENABLE_OFFLINE_PUSH_NOTIFICATIONS
- See Also:
-
ENABLE_ONLINE_PUSH_NOTIFICATIONS
- See Also:
-
ENABLE_SOUNDS
- See Also:
-
ENABLE_STREAM_DESKTOP_NOTIFICATIONS
- See Also:
-
ENABLE_STREAM_EMAIL_NOTIFICATIONS
- See Also:
-
ENABLE_STREAM_PUSH_NOTIFICATIONS
- See Also:
-
ENABLE_STREAM_AUDIBLE_NOTIFICATIONS
- See Also:
-
ENTER_SENDS
- See Also:
-
ESCAPE_NAVIGATES_TO_DEFAULT_VIEW
- See Also:
-
FLUID_LAYOUT_WIDTH
- See Also:
-
FULL_NAME
- See Also:
-
HIDE_AI_FEATURES
- See Also:
-
HIGH_CONTRAST_MODE
- See Also:
-
LEFT_SIDE_USERLIST
- See Also:
-
MESSAGE_CONTENT_IN_EMAIL_NOTIFICATIONS
- See Also:
-
NEW_PASSWORD
- See Also:
-
NOTIFICATION_SOUND
- See Also:
-
OLD_PASSWORD
- See Also:
-
PM_CONTENT_IN_DESKTOP_NOTIFICATIONS
- See Also:
-
PRESENCE_ENABLED
- See Also:
-
REALM_NAME_IN_NOTIFICATIONS
- See Also:
-
REALM_NAME_IN_EMAIL_NOTIFICATIONS_POLICY
- See Also:
-
RECEIVES_TYPING_NOTIFICATIONS
- See Also:
-
SEND_PRIVATE_TYPING_NOTIFICATIONS
- See Also:
-
SEND_READ_RECEIPTS
- See Also:
-
SEND_STREAM_TYPING_NOTIFICATIONS
- See Also:
-
STARRED_MESSAGE_COUNTS
- See Also:
-
TIMEZONE
- See Also:
-
TRANSLATE_EMOTICONS
- See Also:
-
TWENTY_FOUR_HOUR_TIME
- See Also:
-
USER_LIST_STYLE
- See Also:
-
WEB_ANIMATE_IMAGE_PREVIEWS
- See Also:
-
WEB_CHANNEL_DEFAULT_VIEW
- See Also:
-
WEB_FONT_SIZE_PX
- See Also:
-
WEB_LINE_HEIGHT_PERCENT
- See Also:
-
WEB_MARK_READ_ON_SCROLL_POLICY
- See Also:
-
WEB_NAVIGATE_TO_SENT_MESSAGE
- See Also:
-
WEB_SUGGEST_UPDATE_TIMEZONE
- See Also:
-
WILDCARD_MENTIONS_NOTIFY
- See Also:
-
WEB_LEFT_SIDEBAR_SHOW_CHANNEL_FOLDERS
- See Also:
-
WEB_LEFT_SIDEBAR_UNREADS_COUNT_SUMMARY
- See Also:
-
RESOLVED_TOPIC_NOTICE_AUTO_READ_POLICY
- See Also:
-
-
Constructor Details
-
UpdateOwnUserSettingsApiRequest
Constructs aUpdateOwnUserSettingsApiRequest.- Parameters:
client- The Zulip HTTP client
-
-
Method Details
-
withAllowPrivateDataExport
Sets whether organization administrators are allowed to export private data.- Parameters:
allowPrivateDataExport-trueto allow organization administrators to export private data.falseto disallow organization administrators from exporting private data- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withColorScheme
Sets whether stream desktop notifications should be enabled.- Parameters:
colorScheme- The color scheme to use- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withDefaultLanguage
Sets the default language to use.- Parameters:
languageCode- The language code to use. E.g 'en' for English, 'de' for German etc- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance - See Also:
-
withDefaultView
Sets the default view to use.- Parameters:
webHomeView- The default view to use- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance - See Also:
-
withDemoteInactiveStreams
public UpdateOwnUserSettingsApiRequest withDemoteInactiveStreams(DemoteInactiveStreamOption demoteInactiveStreamOption) Sets whether to demote inactive streams.- Parameters:
demoteInactiveStreamOption- The option to control how inactive streams are demoted- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance - See Also:
-
withDesktopIconCountDisplay
public UpdateOwnUserSettingsApiRequest withDesktopIconCountDisplay(DesktopIconCountDisplay desktopIconCountDisplay) Sets whether to display an unread count summary on the Zulip UI.- Parameters:
desktopIconCountDisplay- TheDesktopIconCountDisplaysetting- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withDisplayEmojiReactionUsers
public UpdateOwnUserSettingsApiRequest withDisplayEmojiReactionUsers(boolean displayEmojiReactionUsers) Sets whether to display the names of reacting users on a message.- Parameters:
displayEmojiReactionUsers-trueto to display the names of reacting users on a message.falseto not display the names of reacting users on a message- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withEmailNotificationsBatchingPeriodSeconds
Sets the duration in seconds for which the Zulip server should wait to batch email notifications before sending them.- Parameters:
duration- The batching period duration in seconds- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withEmail
Asks the Zulip server to initiate a confirmation sequence to change the user email address.- Parameters:
email- The new email address to switch to- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withEmojiSet
The emoji set used to display emoji on the Zulip UI.- Parameters:
emojiSet- The emoji set to use- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withEnableDesktopNotifications
Sets whether desktop notifications are enabled.- Parameters:
enable-trueto enable.falseto disable- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withEnableDigestEmails
Sets whether digest emails are enabled.- Parameters:
enable-trueto enable.falseto disable- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withEnableDraftsSynchronization
Sets whether synchronizing drafts is enabled.- Parameters:
enable-trueto enable.falseto disable- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withEnableLoginEmails
Sets whether login emails are enabled.- Parameters:
enable-trueto enable.falseto disable- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withEnableMarketingEmails
Sets whether to enable marketing emails.- Parameters:
enable-trueto enable.falseto disable- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withEnableOfflineEmailNotifications
Sets whether offline email notifications are enabled.- Parameters:
enable-trueto enable.falseto disable- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withEnableOfflinePushNotifications
Sets whether offline push notifications are enabled.- Parameters:
enable-trueto enable.falseto disable- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withEnableOnlinePushNotifications
Sets whether online push notifications are enabled.- Parameters:
enable-trueto enable.falseto disable- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withEnableSounds
Sets whether sounds are enabled.- Parameters:
enable-trueto enable.falseto disable- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withEnableStreamAudibleNotifications
Sets whether stream audible notifications should be enabled.- Parameters:
enable-trueto enable.falseto disable- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withEnableStreamDesktopNotifications
Sets whether stream desktop notifications should be enabled.- Parameters:
enable-trueto enable.falseto disable- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withEnableStreamEmailNotifications
Sets whether stream email notifications should be enabled.- Parameters:
enable-trueto enable.falseto disable- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withEnableStreamPushNotifications
Sets whether stream push notifications should be enabled.- Parameters:
enable-trueto enable.falseto disable- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withEnterSends
Sets whether pressing the enter key on the Zulip UI sends a message.- Parameters:
enterSends-truecauses the enter key press to send the message.falsedoes not send a message when the enter key is pressed- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withFluidLayoutWidth
Whether to use the maximum available screen width for the Zulip web UI center panel.- Parameters:
fluidLayoutWidth-truecauses the Zulip UI to use the maximum available screen width for the center panel.falsecauses the UI to not use the maximum available width for the UI center panel- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withFullName
Sets a new display name for the user.- Parameters:
fullName-trueThe new display name.- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withHideAiFeatures
Sets whether AI features like topic summarization should be hidden.- Parameters:
hideAiFeatures-trueto hide AI features.falseto not hide AI features.- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withHighContrastMode
Whether to enable variations in the Zulip UI to help visually impaired users.- Parameters:
highContrastMode-trueenables high contrast mode.falsedisables high contrast mode- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withLeftSideUserList
Whether the users list on left sidebar in narrow windows.- Parameters:
leftSideUserList-truemakes the users list appear on the left side bar in the Zulip web UI.falseplaces the users list elsewhere in the Web UI- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withMessageContentInEmailNotifications
public UpdateOwnUserSettingsApiRequest withMessageContentInEmailNotifications(boolean messageContentInEmailNotifications) Sets whether message content is present in email notifications.- Parameters:
messageContentInEmailNotifications-trueto show message content in email notifications.falseto not show message content in email notifications- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withNewPassword
The new password for the current user. Must be set in conjunction withwithOldPassword(String)()}- Parameters:
newPassword- the new password- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withNotificationSound
Sets the notification sound.- Parameters:
notificationSound- The name of the notification sound to play- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withOldPassword
The old password for the current user. Must be set in conjunction withwithNewPassword(String)()}- Parameters:
oldPassword- the old password- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withPmContentInDesktopNotifications
public UpdateOwnUserSettingsApiRequest withPmContentInDesktopNotifications(boolean pmContentInDesktopNotifications) Sets whether private message content shows in desktop notifications.- Parameters:
pmContentInDesktopNotifications-trueto have private message content show in desktop notifications.falseto not have private message content show in desktop notifications- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withPresenceEnabled
Sets whether to display the presence status to other users when online.- Parameters:
enable-trueto display the presence status to other users when online.falseto not display the presence status to other users when online- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withRealmNameInNotifications
@Deprecated public UpdateOwnUserSettingsApiRequest withRealmNameInNotifications(boolean realmNameInNotifications) Deprecated.Use withRealmNameInEmailNotifications insteadSets whether to include organization name in subject of missed message emails.- Parameters:
realmNameInNotifications-trueto include the organization name in the subject of missed message emails.falseto not include the organization name in the subject of missed message emails- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withRealmNameInEmailNotifications
public UpdateOwnUserSettingsApiRequest withRealmNameInEmailNotifications(RealmNameInNotificationsPolicy policy) Sets whether to include the organization name in the subject of message notification emails.- Parameters:
policy- TheRealmNameInNotificationsPolicyto determine whether to include the organization name in the subject of message notification emails- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withReceivesTypingNotifications
public UpdateOwnUserSettingsApiRequest withReceivesTypingNotifications(boolean receivesTypingNotifications) Sets whether the user is configured to receive typing notifications from other users.- Parameters:
receivesTypingNotifications- true to receive typing notifications from other users.falseto not receive typing notifications from other users.- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withSendPrivateTypingNotifications
public UpdateOwnUserSettingsApiRequest withSendPrivateTypingNotifications(boolean sendPrivateTypingNotifications) Sets whether typing notifications be sent when composing private messages.- Parameters:
sendPrivateTypingNotifications-trueto send typing notifications.falseto not send typing notifications- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance - See Also:
-
withSendReadReceipts
Sets whether other users are allowed to see whether you have read messages.- Parameters:
sendReadReceipts-trueto allow others see whether you have read messages.falseto disallow users seeing whether you have read messages- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withSendStreamTypingNotifications
public UpdateOwnUserSettingsApiRequest withSendStreamTypingNotifications(boolean sendStreamTypingNotifications) Sets whether typing notifications be sent when composing stream messages.- Parameters:
sendStreamTypingNotifications-trueto send typing notifications.falseto not send typing notifications- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance - See Also:
-
withStarredMessageCounts
Sets whether to display the number of starred messages.- Parameters:
starredMessageCounts-trueto display the number of starred messages.falseto not display the number of starred messages- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance - See Also:
-
withTimezone
Sets the user configured timezone.- Parameters:
timezone- The users timezone- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance - See Also:
-
withTranslateEmoticons
Sets whether to translate emoticons to emoji in messages the user sends.- Parameters:
translateEmoticons-trueto translate emoticons to emoji.falseto not translate emoticons- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance - See Also:
-
withTwentyFourHourTime
Sets whether time should be displayed in 24-hour notation.- Parameters:
enable-trueto display the time in 24-hour notation.falseto not display time in 24-hour notation- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance - See Also:
-
withUserListStyle
Sets the style selected by the user for the right sidebar user list.- Parameters:
userListStyle- for the style selected by the user for the right sidebar user list- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withWebAnimateImagePreviews
public UpdateOwnUserSettingsApiRequest withWebAnimateImagePreviews(WebAnimateImageOption webAnimateImageOption) Sets how animated images should be played in the message feed.- Parameters:
webAnimateImageOption- The option determining how animated images should be played- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withWebChannelDefaultView
Sets the default navigation behavior when clicking on a channel link.- Parameters:
webChannelView- for the default channel view- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withWebFontPx
Sets the user primary font size in pixels.- Parameters:
fontSize- The size of the font used on the Zulip web UI- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withWebLineHeightPercent
Sets the user primary line height for the Zulip web UI in percent.- Parameters:
webLineHeightPercent- The line height percentage value- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withWebMarkReadOnScrollPolicy
Sets whether to mark messages as read when the user scrolls through their feed.- Parameters:
policy- TheMarkReadOnScrollPolicyto determine whether when messages are marked as read- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withWebSuggestUpdateTimezone
public UpdateOwnUserSettingsApiRequest withWebSuggestUpdateTimezone(boolean webSuggestUpdateTimezone) Sets whether the user should be shown an alert, offering to update their profile time zone, when the time displayed for the profile time zone differs from the current time displayed by the time zone configured on their device.- Parameters:
webSuggestUpdateTimezone-trueto show a user alert offering to update their profile time zone. false to not show an alert.- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withWildcardMentionsNotify
Sets whether to be notified when wildcard mentions are triggered.- Parameters:
wildcardMentionsNotify-trueto be notified when wildcard mentions are triggered.falseto not be notified when wildcard mentions are triggered- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withWebLeftSidebarShowChannelFolders
public UpdateOwnUserSettingsApiRequest withWebLeftSidebarShowChannelFolders(boolean webLeftSidebarShowChannelFolders) Sets whether the left sidebar displays channel folders configured by the organization.- Parameters:
webLeftSidebarShowChannelFolders-trueto display channel folders configured by the organization.falseto not display folders- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withWebLeftSidebarUnreadsCountSummary
public UpdateOwnUserSettingsApiRequest withWebLeftSidebarUnreadsCountSummary(boolean webLeftSidebarUnreadsCountSummary) Sets whether the left sidebar displays the unread message count summary.- Parameters:
webLeftSidebarUnreadsCountSummary-trueto display the unread message count summary.falseto not display the message count summary- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
withResolvedTopicNoticeAutoReadPolicy
public UpdateOwnUserSettingsApiRequest withResolvedTopicNoticeAutoReadPolicy(ResolvedTopicNoticeAutoReadPolicy resolvedTopicNoticeAutoReadPolicy) Sets whether resolved topic notices are marked as read.- Parameters:
resolvedTopicNoticeAutoReadPolicy- TheResolvedTopicNoticeAutoReadPolicyto apply- Returns:
- This
UpdateOwnUserSettingsApiRequestinstance
-
execute
Executes the Zulip API request for updating own user settings.- Specified by:
executein interfaceExecutableApiRequest<List<String>>- Returns:
- List of settings that were ignored
- Throws:
ZulipClientException- if the request was not successful
-