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.

Method descriptions

-withAge:

- (YMMUserProfileUpdate *)withAge:(NSUInteger)value

Updates the attribute value.

Parameters:
valueAge.

Returns:

The instance of the YMMUserProfileUpdate class.

-withYear:

- (YMMUserProfileUpdate *)withYear:(NSUInteger)year

Updates the attribute value.

Parameters:
year

Year of birth.

Returns:

The instance of the YMMUserProfileUpdate class.

-withYear:month:

- (YMMUserProfileUpdate *)withYear:(NSUInteger)year month:(NSUInteger)month

Updates the attribute value.

Parameters:
year

Year of birth.

month

Month of birth.

Returns:

The instance of the YMMUserProfileUpdate class.

-withYear:month:day:

- (YMMUserProfileUpdate *)withYear:(NSUInteger)year
                             month:(NSUInteger)month
                               day:(NSUInteger)day

Updates the attribute value.

Parameters:
year

Year of birth.

month

Month of birth.

day

Day of birth.

Returns:

The instance of the YMMUserProfileUpdate class.

-withDateComponents:

- (YMMUserProfileUpdate *)withDateComponents:(NSDateComponents *)dateComponents

Updates the attribute value.

Parameters:
dateComponents

The instance of the NSDateComponents class.

Returns:

The instance of the YMMUserProfileUpdate class.

-withValueReset

- (YMMUserProfileUpdate *)withValueReset

Resets the attribute value.

Returns:

The instance of the YMMUserProfileUpdate class.