NotificationsEnabledAttribute protocol

The protocol defines methods for updating the notification status of a user profile.

It indicates whether the user has enabled notifications.

Instance methods

withValue(_:)

Updates the attribute value.

withValueReset()

Resets the attribute value.

Method descriptions

withValue(_:)

func withValue(_ value: Bool) -> UserProfileUpdate

Updates the attribute value.

Parameters:

value

Attribute value: true or false.

Returns:

The UserProfileUpdate class instance.

withValueReset()

func withValueReset() -> UserProfileUpdate

Resets the attribute value.

Returns:

The UserProfileUpdate class instance.