Skip to content

Commit

Permalink
Merge pull request forcedotcom#443 from khawkins/custom_attributes
Browse files Browse the repository at this point in the history
Adding support for custom_attributes identity data
  • Loading branch information
khawkins committed Oct 15, 2013
2 parents 4a6281f + 876d246 commit 4544db8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@
*/
@property (readonly) int mobileAppScreenLockTimeout;

/**
* An optional dictionary of custom attributes defined on the Connected App.
*/
@property (strong, nonatomic, readonly) NSDictionary *customAttributes;

/**
* The date this record was last modified.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
NSString * const kSFIdentityMobilePolicyKey = @"mobile_policy";
NSString * const kSFIdentityMobileAppPinLengthKey = @"pin_length";
NSString * const kSFIdentityMobileAppScreenLockTimeoutKey = @"screen_lock";
NSString * const kSFIdentityCustomAttributesKey = @"custom_attributes";
NSString * const kSFIdentityLastModifiedDateKey = @"last_modified_date";

NSString * const kSFIdentityDateFormatString = @"yyyy-MM-dd'T'HH:mm:ss.SSSZZZ";
Expand Down Expand Up @@ -316,6 +317,11 @@ - (int)mobileAppScreenLockTimeout
}
}

- (NSDictionary *)customAttributes
{
return [self.dictRepresentation objectForKey:kSFIdentityCustomAttributesKey];
}

- (NSDate *)lastModifiedDate
{
if ([self.dictRepresentation objectForKey:kSFIdentityLastModifiedDateKey] != nil)
Expand Down

0 comments on commit 4544db8

Please sign in to comment.