Class UpdateRealmNewUserDefaultSettingsApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.server.request.UpdateRealmNewUserDefaultSettingsApiRequest
- All Implemented Interfaces:
ExecutableApiRequest<List<String>>
public class UpdateRealmNewUserDefaultSettingsApiRequest
extends ZulipApiRequest
implements ExecutableApiRequest<List<String>>
Zulip API request builder for updating realm level default settings for new users.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute()
Invokes the HTTP client to send the request to the Zulip REST API and returns a response as type T.Sets the topics to follow automatically.withAutomaticallyFollowTopicsWhereMentioned
(boolean enable) Sets whether the server will automatically mark the user as following topics where the user is mentioned.Sets the topics to unmute automatically in muted streams.withColorScheme
(ColorScheme colorScheme) Sets the color scheme 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.Sets the policy for which other users in this organization can see the users real 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.withEnableFollowedTopicAudibleNotifications
(boolean enable) Sets whether audible desktop notifications for messages sent to followed topics is enabled.withEnableFollowedTopicDesktopNotifications
(boolean enable) Sets whether visual desktop notifications for messages sent to followed topics is enabled.withEnableFollowedTopicEmailNotifications
(boolean enable) Sets whether email notifications for messages sent to followed topics is enabled.withEnableFollowedTopicPushNotifications
(boolean enable) Sets whether push notifications for messages sent to followed topics is enabled.withEnableFollowedTopicWildcardMentionsNotify
(boolean enable) Sets whether wildcard mentions in messages sent to followed topics should send notifications like a personal mention is enabled.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.withFluidLayoutWidth
(boolean fluidLayoutWidth) Whether to use the maximum available screen width for the Zulip web UI center panel.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.withNotificationSound
(String notificationSound) Sets the notification sound.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.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.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.withWebEscapeNavigatesToHomeView
(boolean webEscapeNavigatesToHomeView) Sets whether pressing the escape key navigates to the web home view.withWebFontPx
(int fontSize) Sets the user primary font size in pixels.withWebHomeView
(WebHomeView webHomeView) Sets the web home view to use.withWebLineHeightPercent
(int webLineHeightPercent) Sets the user primary line height for the Zulip web UI in percent.Sets whether or not 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.Sets which streams should be displayed with a numeric unread count in the left sidebar in the Zulip UI.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, getParams, putParam, putParamAsJsonString, putParamAsWrappedObject
-
Field Details
-
AUTOMATICALLY_FOLLOW_TOPICS_POLICY
- See Also:
-
AUTOMATICALLY_UNMUTE_TOPICS_IN_MUTED_STREAMS_POLICY
- See Also:
-
AUTOMATICALLY_FOLLOW_TOPICS_WHERE_MENTIONED
- See Also:
-
COLOR_SCHEME
- See Also:
-
DEMOTE_INACTIVE_STREAMS
- See Also:
-
DISPLAY_EMOJI_REACTION_USERS
- See Also:
-
DESKTOP_ICON_COUNT_DISPLAY
- See Also:
-
ENABLE_DESKTOP_NOTIFICATIONS
- See Also:
-
EMAIL_ADDRESS_VISIBILITY
- See Also:
-
EMAIL_NOTIFICATIONS_BATCHING_PERIOD_SECONDS
- See Also:
-
EMOJISET
- See Also:
-
ENABLE_DIGEST_EMAILS
- See Also:
-
ENABLE_DRAFTS_SYNCHRONIZATION
- See Also:
-
ENABLE_FOLLOWED_TOPIC_DESKTOP_NOTIFICATIONS
- See Also:
-
ENABLE_FOLLOWED_TOPIC_EMAIL_NOTIFICATIONS
- See Also:
-
ENABLE_FOLLOWED_TOPIC_PUSH_NOTIFICATIONS
- See Also:
-
ENABLE_FOLLOWED_TOPIC_AUDIBLE_NOTIFICATIONS
- See Also:
-
ENABLE_FOLLOWED_TOPIC_WILDCARD_MENTIONS_NOTIFY
- 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_AUDIBLE_NOTIFICATIONS
- See Also:
-
ENABLE_STREAM_DESKTOP_NOTIFICATIONS
- See Also:
-
ENABLE_STREAM_EMAIL_NOTIFICATIONS
- See Also:
-
ENABLE_STREAM_PUSH_NOTIFICATIONS
- See Also:
-
ENTER_SENDS
- See Also:
-
FLUID_LAYOUT_WIDTH
- See Also:
-
HIGH_CONTRAST_MODE
- See Also:
-
LEFT_SIDE_USERLIST
- See Also:
-
MESSAGE_CONTENT_IN_EMAIL_NOTIFICATIONS
- See Also:
-
NOTIFICATION_SOUND
- 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:
-
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_ESCAPE_NAVIGATES_TO_HOME_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_HOME_VIEW
- See Also:
-
WEB_STREAM_UNREADS_COUNT_DISPLAY_POLICY
- See Also:
-
WEB_SUGGEST_UPDATE_TIMEZONE
- See Also:
-
WILDCARD_MENTIONS_NOTIFY
- See Also:
-
-
Constructor Details
-
UpdateRealmNewUserDefaultSettingsApiRequest
Constructs aUpdateRealmNewUserDefaultSettingsApiRequest
.- Parameters:
client
- The Zulip HTTP client
-
-
Method Details
-
withAutomaticallyFollowTopicsPolicy
public UpdateRealmNewUserDefaultSettingsApiRequest withAutomaticallyFollowTopicsPolicy(TopicFollowPolicy policy) Sets the topics to follow automatically.- Parameters:
policy
- TheTopicFollowPolicy
to use- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withAutomaticallyUnmuteTopicsInMutedStreamsPolicy
public UpdateRealmNewUserDefaultSettingsApiRequest withAutomaticallyUnmuteTopicsInMutedStreamsPolicy(UnmuteTopicInMutedStreamsPolicy policy) Sets the topics to unmute automatically in muted streams.- Parameters:
policy
- TheUnmuteTopicInMutedStreamsPolicy
to use- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withAutomaticallyFollowTopicsWhereMentioned
public UpdateRealmNewUserDefaultSettingsApiRequest withAutomaticallyFollowTopicsWhereMentioned(boolean enable) Sets whether the server will automatically mark the user as following topics where the user is mentioned.- Parameters:
enable
-true
to enable.false
to disable- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withColorScheme
Sets the color scheme to use.- Parameters:
colorScheme
- The color scheme to use- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withWebHomeView
Sets the web home view to use.- Parameters:
webHomeView
- The default web home view to use- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance - See Also:
-
withDemoteInactiveStreams
public UpdateRealmNewUserDefaultSettingsApiRequest withDemoteInactiveStreams(DemoteInactiveStreamOption demoteInactiveStreamOption) Sets whether to demote inactive streams.- Parameters:
demoteInactiveStreamOption
- The option to control how inactive streams are demoted- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance - See Also:
-
withDesktopIconCountDisplay
public UpdateRealmNewUserDefaultSettingsApiRequest withDesktopIconCountDisplay(DesktopIconCountDisplay desktopIconCountDisplay) Sets whether to display an unread count summary on the Zulip UI.- Parameters:
desktopIconCountDisplay
- TheDesktopIconCountDisplay
setting- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withDisplayEmojiReactionUsers
public UpdateRealmNewUserDefaultSettingsApiRequest withDisplayEmojiReactionUsers(boolean displayEmojiReactionUsers) Sets whether to display the names of reacting users on a message.- Parameters:
displayEmojiReactionUsers
-true
to to display the names of reacting users on a message.false
to not display the names of reacting users on a message- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withEmailNotificationsBatchingPeriodSeconds
public UpdateRealmNewUserDefaultSettingsApiRequest withEmailNotificationsBatchingPeriodSeconds(int duration) 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
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withEmojiSet
The emoji set used to display emoji on the Zulip UI.- Parameters:
emojiSet
- The emoji set to use- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withEnableDesktopNotifications
Sets whether desktop notifications are enabled.- Parameters:
enable
-true
to enable.false
to disable- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withEmailAddressVisibility
public UpdateRealmNewUserDefaultSettingsApiRequest withEmailAddressVisibility(EmailAddressVisibilityPolicy policy) Sets the policy for which other users in this organization can see the users real email address.- Parameters:
policy
- TheEmailAddressVisibilityPolicy
to apply- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withEnableDigestEmails
Sets whether digest emails are enabled.- Parameters:
enable
-true
to enable.false
to disable- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withEnableDraftsSynchronization
Sets whether synchronizing drafts is enabled.- Parameters:
enable
-true
to enable.false
to disable- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withEnableFollowedTopicDesktopNotifications
public UpdateRealmNewUserDefaultSettingsApiRequest withEnableFollowedTopicDesktopNotifications(boolean enable) Sets whether visual desktop notifications for messages sent to followed topics is enabled.- Parameters:
enable
-true
to enable.false
to disable- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withEnableFollowedTopicEmailNotifications
public UpdateRealmNewUserDefaultSettingsApiRequest withEnableFollowedTopicEmailNotifications(boolean enable) Sets whether email notifications for messages sent to followed topics is enabled.- Parameters:
enable
-true
to enable.false
to disable- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withEnableFollowedTopicPushNotifications
public UpdateRealmNewUserDefaultSettingsApiRequest withEnableFollowedTopicPushNotifications(boolean enable) Sets whether push notifications for messages sent to followed topics is enabled.- Parameters:
enable
-true
to enable.false
to disable- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withEnableFollowedTopicAudibleNotifications
public UpdateRealmNewUserDefaultSettingsApiRequest withEnableFollowedTopicAudibleNotifications(boolean enable) Sets whether audible desktop notifications for messages sent to followed topics is enabled.- Parameters:
enable
-true
to enable.false
to disable- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withEnableFollowedTopicWildcardMentionsNotify
public UpdateRealmNewUserDefaultSettingsApiRequest withEnableFollowedTopicWildcardMentionsNotify(boolean enable) Sets whether wildcard mentions in messages sent to followed topics should send notifications like a personal mention is enabled.- Parameters:
enable
-true
to enable.false
to disable- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withEnableOfflineEmailNotifications
public UpdateRealmNewUserDefaultSettingsApiRequest withEnableOfflineEmailNotifications(boolean enable) Sets whether offline email notifications are enabled.- Parameters:
enable
-true
to enable.false
to disable- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withEnableOfflinePushNotifications
public UpdateRealmNewUserDefaultSettingsApiRequest withEnableOfflinePushNotifications(boolean enable) Sets whether offline push notifications are enabled.- Parameters:
enable
-true
to enable.false
to disable- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withEnableOnlinePushNotifications
public UpdateRealmNewUserDefaultSettingsApiRequest withEnableOnlinePushNotifications(boolean enable) Sets whether online push notifications are enabled.- Parameters:
enable
-true
to enable.false
to disable- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withEnableSounds
Sets whether sounds are enabled.- Parameters:
enable
-true
to enable.false
to disable- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withEnableStreamAudibleNotifications
public UpdateRealmNewUserDefaultSettingsApiRequest withEnableStreamAudibleNotifications(boolean enable) Sets whether stream audible notifications should be enabled.- Parameters:
enable
-true
to enable.false
to disable- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withEnableStreamDesktopNotifications
public UpdateRealmNewUserDefaultSettingsApiRequest withEnableStreamDesktopNotifications(boolean enable) Sets whether stream desktop notifications should be enabled.- Parameters:
enable
-true
to enable.false
to disable- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withEnableStreamEmailNotifications
public UpdateRealmNewUserDefaultSettingsApiRequest withEnableStreamEmailNotifications(boolean enable) Sets whether stream email notifications should be enabled.- Parameters:
enable
-true
to enable.false
to disable- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withEnableStreamPushNotifications
public UpdateRealmNewUserDefaultSettingsApiRequest withEnableStreamPushNotifications(boolean enable) Sets whether stream push notifications should be enabled.- Parameters:
enable
-true
to enable.false
to disable- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withEnterSends
Sets whether pressing the enter key on the Zulip UI sends a message.- Parameters:
enterSends
-true
causes the enter key press to send the message.false
does not send a message when the enter key is pressed- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withFluidLayoutWidth
Whether to use the maximum available screen width for the Zulip web UI center panel.- Parameters:
fluidLayoutWidth
-true
causes the Zulip UI to use the maximum available screen width for the center panel.false
causes the UI to not use the maximum available width for the UI center panel- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withHighContrastMode
Whether to enable variations in the Zulip UI to help visually impaired users.- Parameters:
highContrastMode
-true
enables high contrast mode.false
disables high contrast mode- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withLeftSideUserList
Whether the users list on left sidebar in narrow windows.- Parameters:
leftSideUserList
-true
makes the users list appear on the left side bar in the Zulip web UI.false
places the users list elsewhere in the Web UI- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withMessageContentInEmailNotifications
public UpdateRealmNewUserDefaultSettingsApiRequest withMessageContentInEmailNotifications(boolean messageContentInEmailNotifications) Sets whether message content is present in email notifications.- Parameters:
messageContentInEmailNotifications
-true
to show message content in email notifications.false
to not show message content in email notifications- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withNotificationSound
Sets the notification sound.- Parameters:
notificationSound
- The name of the notification sound to play- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withPmContentInDesktopNotifications
public UpdateRealmNewUserDefaultSettingsApiRequest withPmContentInDesktopNotifications(boolean pmContentInDesktopNotifications) Sets whether private message content shows in desktop notifications.- Parameters:
pmContentInDesktopNotifications
-true
to have private message content show in desktop notifications.false
to not have private message content show in desktop notifications- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withPresenceEnabled
Sets whether to display the presence status to other users when online.- Parameters:
enable
-true
to display the presence status to other users when online.false
to not display the presence status to other users when online- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withRealmNameInNotifications
@Deprecated public UpdateRealmNewUserDefaultSettingsApiRequest withRealmNameInNotifications(boolean realmNameInNotifications) Deprecated.use withRealmNameInEmailNotifications insteadSets whether to include organization name in subject of missed message emails.- Parameters:
realmNameInNotifications
-true
to include the organization name in the subject of missed message emails.false
to not include the organization name in the subject of missed message emails- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withRealmNameInEmailNotifications
public UpdateRealmNewUserDefaultSettingsApiRequest withRealmNameInEmailNotifications(RealmNameInNotificationsPolicy policy) Sets whether to include the organization name in the subject of message notification emails.- Parameters:
policy
- TheRealmNameInNotificationsPolicy
to determine whether to include the organization name in the subject of message notification emails- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withReceivesTypingNotifications
public UpdateRealmNewUserDefaultSettingsApiRequest 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.false
to not receive typing notifications from other users.- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withSendPrivateTypingNotifications
public UpdateRealmNewUserDefaultSettingsApiRequest withSendPrivateTypingNotifications(boolean sendPrivateTypingNotifications) Sets whether typing notifications be sent when composing private messages.- Parameters:
sendPrivateTypingNotifications
-true
to send typing notifications.false
to not send typing notifications- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance - See Also:
-
withSendReadReceipts
Sets whether other users are allowed to see whether you have read messages.- Parameters:
sendReadReceipts
-true
to allow others see whether you have read messages.false
to disallow users seeing whether you have read messages- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withSendStreamTypingNotifications
public UpdateRealmNewUserDefaultSettingsApiRequest withSendStreamTypingNotifications(boolean sendStreamTypingNotifications) Sets whether typing notifications be sent when composing stream messages.- Parameters:
sendStreamTypingNotifications
-true
to send typing notifications.false
to not send typing notifications- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance - See Also:
-
withStarredMessageCounts
public UpdateRealmNewUserDefaultSettingsApiRequest withStarredMessageCounts(boolean starredMessageCounts) Sets whether to display the number of starred messages.- Parameters:
starredMessageCounts
-true
to display the number of starred messages.false
to not display the number of starred messages- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance - See Also:
-
withTranslateEmoticons
public UpdateRealmNewUserDefaultSettingsApiRequest withTranslateEmoticons(boolean translateEmoticons) Sets whether to translate emoticons to emoji in messages the user sends.- Parameters:
translateEmoticons
-true
to translate emoticons to emoji.false
to not translate emoticons- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance - See Also:
-
withTwentyFourHourTime
Sets whether time should be displayed in 24-hour notation.- Parameters:
enable
-true
to display the time in 24-hour notation.false
to not display time in 24-hour notation- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance - See Also:
-
withUserListStyle
Sets the style selected by the user for the right sidebar user list.- Parameters:
userListStyle
-true
The style selected by the user for the right sidebar user list- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withWebAnimateImagePreviews
public UpdateRealmNewUserDefaultSettingsApiRequest 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
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withWebChannelDefaultView
public UpdateRealmNewUserDefaultSettingsApiRequest withWebChannelDefaultView(WebChannelView webChannelView) Sets the default navigation behavior when clicking on a channel link.- Parameters:
webChannelView
- for the default channel view- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withWebFontPx
Sets the user primary font size in pixels.- Parameters:
fontSize
- The size of the font used on the Zulip web UI- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withWebLineHeightPercent
public UpdateRealmNewUserDefaultSettingsApiRequest withWebLineHeightPercent(int webLineHeightPercent) Sets the user primary line height for the Zulip web UI in percent.- Parameters:
webLineHeightPercent
- The line height percentage value- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withWebMarkReadOnScrollPolicy
public UpdateRealmNewUserDefaultSettingsApiRequest withWebMarkReadOnScrollPolicy(MarkReadOnScrollPolicy policy) Sets whether or not to mark messages as read when the user scrolls through their feed.- Parameters:
policy
- TheMarkReadOnScrollPolicy
to determine whether when messages are marked as read- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withWebStreamUnreadsCountDisplayPolicy
public UpdateRealmNewUserDefaultSettingsApiRequest withWebStreamUnreadsCountDisplayPolicy(WebStreamUnreadsCountDisplayPolicy policy) Sets which streams should be displayed with a numeric unread count in the left sidebar in the Zulip UI.- Parameters:
policy
- TheWebStreamUnreadsCountDisplayPolicy
to determine which streams are to be displayed- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withWebSuggestUpdateTimezone
public UpdateRealmNewUserDefaultSettingsApiRequest 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
-true
to show a user alert offering to update their profile time zone. false to not show an alert.- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
withWildcardMentionsNotify
public UpdateRealmNewUserDefaultSettingsApiRequest withWildcardMentionsNotify(boolean wildcardMentionsNotify) Sets whether to be notified when wildcard mentions are triggered.- Parameters:
wildcardMentionsNotify
-true
to be notified when wildcard mentions are triggered.false
to not be notified when wildcard mentions are triggered- Returns:
- This
UpdateRealmNewUserDefaultSettingsApiRequest
instance
-
execute
Description copied from interface:ExecutableApiRequest
Invokes the HTTP client to send the request to the Zulip REST API and returns a response as type T.- Specified by:
execute
in interfaceExecutableApiRequest<List<String>>
- Returns:
- The response for type T
- Throws:
ZulipClientException
- if an error occurs for the API request
-