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