YMMBirthDateAttribute protocol
The protocol defines methods for updating the age or date of birth of a user profile.
Instance methods
-withAge: | Updates the attribute value. |
-withYear: | Updates the attribute value. |
-withYear:month: | Updates the attribute value. |
-withYear:month:day: | Updates the attribute value. |
-withDateComponents: | Updates the attribute value. |
-withValueReset | Resets the attribute value. |
-withAge: | Updates the attribute value. |
-withYear: | Updates the attribute value. |
-withYear:month: | Updates the attribute value. |
-withYear:month:day: | Updates the attribute value. |
-withDateComponents: | Updates the attribute value. |
-withValueReset | Resets the attribute value. |
Method descriptions
-withAge:
- (YMMUserProfileUpdate *)withAge:(NSUInteger)value
Updates the attribute value.
value | Age. |
value | Age. |
Returns:
The YMMUserProfileUpdate
class instance.
-withYear:
- (YMMUserProfileUpdate *)withYear:(NSUInteger)year
Updates the attribute value.
year | Year of birth. |
year | Year of birth. |
Returns:
The YMMUserProfileUpdate
class instance.
-withYear:month:
- (YMMUserProfileUpdate *)withYear:(NSUInteger)year month:(NSUInteger)month
Updates the attribute value.
year | Year of birth. |
month | Month of birth. |
year | Year of birth. |
month | Month of birth. |
Returns:
The YMMUserProfileUpdate
class instance.
-withYear:month:day:
- (YMMUserProfileUpdate *)withYear:(NSUInteger)year
month:(NSUInteger)month
day:(NSUInteger)day
Updates the attribute value.
year | Year of birth. |
month | Month of birth. |
day | Day of birth. |
year | Year of birth. |
month | Month of birth. |
day | Day of birth. |
Returns:
The YMMUserProfileUpdate
class instance.
-withDateComponents:
- (YMMUserProfileUpdate *)withDateComponents:(NSDateComponents *)dateComponents
Updates the attribute value.
dateComponents | The instance of the |
dateComponents | The instance of the |
Returns:
The YMMUserProfileUpdate
class instance.
-withValueReset
- (YMMUserProfileUpdate *)withValueReset
Resets the attribute value.
Returns:
The YMMUserProfileUpdate
class instance.