GenderAttribute protocol
The protocol defines methods for updating the gender of a user profile.
Instance methods
Updates the attribute value with the specified value from the GenderType enum. |
|
Resets the attribute value. |
Method descriptions
withValue(_:)
func withValue(_ value: GenderType) -> UserProfileUpdate
Updates the attribute value with the specified value from the GenderType enum.
Parameters:
|
The value from the GenderType enum. |
Returns:
The UserProfileUpdate
class instance.
withValueReset()
func withValueReset() -> UserProfileUpdate
Resets the attribute value.
Returns:
The UserProfileUpdate
class instance.