GenderAttribute 协议
该协议定义了更新用户个人资料性别的方法。
Instance methods
|
用 GenderType 枚举中指定的值更新属性值。 |
|
|
重置属性值。 |
Method descriptions
withValue(_:)
func withValue(_ value: GenderType) -> UserProfileUpdate
用 GenderType 枚举中指定的值更新属性值。
参数:
|
|
来自 GenderType 枚举的值。 |
返回:
The 用户配置更新 类实例。
withValueReset()
func withValueReset() -> UserProfileUpdate
重置属性值。
返回:
The 用户配置更新 类实例。