AMABirthDateAttribute 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:

- (AMAUserProfileUpdate *)withAge:(NSUInteger)value

Updates the attribute value.

Parameters:

value

Age.

Returns:

The AMAUserProfileUpdate class instance.

-withYear:

- (AMAUserProfileUpdate *)withYear:(NSUInteger)year

Updates the attribute value.

Parameters:

year

Year of birth.

Returns:

The AMAUserProfileUpdate class instance.

-withYear:month:

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

Updates the attribute value.

Parameters:

year

Year of birth.

month

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

Year of birth.

month

Month of birth.

day

Day of birth.

Returns:

The AMAUserProfileUpdate class instance.

-withDateComponents:

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

Updates the attribute value.

Parameters:

dateComponents

The NSDateComponents class instance.

Returns:

The AMAUserProfileUpdate class instance.

-withValueReset

- (AMAUserProfileUpdate *)withValueReset

Resets the attribute value.

Returns:

The AMAUserProfileUpdate class instance.