CustomBoolAttribute protocol
The protocol defines methods for updating the value of a boolean attribute.
Instance methods
Updates the attribute value. |
|
Updates the attribute value if it wasn't set earlier. |
|
Resets the attribute value. |
Method descriptions
withValue(_:)
func withValue(_ value: Bool) -> UserProfileUpdate
Updates the attribute value.
Parameters:
|
Attribute value: |
Returns:
The UserProfileUpdate
class instance.
withValueIfUndefined(_:)
func withValueIfUndefined(_ value: Bool) -> UserProfileUpdate
Updates the attribute value if it wasn't set earlier.
Parameters:
|
Attribute value: |
Returns:
The UserProfileUpdate
class instance.
withValueReset()
func withValueReset() -> UserProfileUpdate
Resets the attribute value.
Returns:
The UserProfileUpdate
class instance.