UserSettingService#

class UserSettingService[source]#

Methods

get_all_notification_settings

Update preferences for notifications.

patch_notification_setting

Update preferences for notifications.

get_ui_preference

Get ui preferences.

patch_ui_preference

Update ui preferences.

get_all_notification_settings(*, token=Nothing)[source]#

Update preferences for notifications.

Parameters:

token (Union[Just[str], _Nothing[str]]) – The token with which you want to get the preferences, if not given the preferences are retrieved for the currently logged in user.

Returns:

The preferences for the user as described by the token.

Return type:

NotificationSetting

patch_notification_setting(json_body, *, token=Nothing)[source]#

Update preferences for notifications.

Parameters:
Returns:

Nothing.

Return type:

None

get_ui_preference(*, name, token=Nothing)[source]#

Get ui preferences.

Parameters:
  • name (str) – The name of the preference you want to get.

  • token (Union[Just[str], _Nothing[str]]) – The token with which you want to get the preferences, if not given the preferences are retrieved for the currently logged in user.

Returns:

The preferences for the user as described by the token.

Return type:

PresentPreference | NonPresentPreference

patch_ui_preference(json_body, *, token=Nothing)[source]#

Update ui preferences.

Parameters:
Returns:

Nothing.

Return type:

None