IOSAD-164 Add flags to dictionary enumeration IOSAD-164
authorDirk Zimmermann <dz@pep.security>
Mon, 13 Jan 2020 13:46:19 +0100
branchIOSAD-164
changeset 1396dd79b44a1352
parent 1395 d07913ef56ee
child 1397 b46446c1a8bc
IOSAD-164 Add flags to dictionary enumeration
pEpObjCAdapter/PEPIdentity.m
pEpObjCAdapterFramework/PEPConstants.h
pEpObjCAdapterFramework/PEPConstants.m
     1.1 --- a/pEpObjCAdapter/PEPIdentity.m	Mon Jan 13 13:46:19 2020 +0100
     1.2 +++ b/pEpObjCAdapter/PEPIdentity.m	Mon Jan 13 13:46:19 2020 +0100
     1.3 @@ -226,7 +226,8 @@
     1.4      NSMutableArray *result = [@[ @[kPepAddress, self.address],
     1.5                                   @[kPepCommType,
     1.6                                     [NSNumber numberWithInteger:(NSInteger) self.commType]],
     1.7 -                                 @[kPepIsOwnIdentity, [NSNumber numberWithBool:self.isOwn]]]
     1.8 +                                 @[kPepIsOwnIdentity, [NSNumber numberWithBool:self.isOwn]],
     1.9 +                                 @[kPepFlags, [NSNumber numberWithInt:self.flags]]]
    1.10                                mutableCopy];
    1.11  
    1.12      if (self.fingerPrint) {
     2.1 --- a/pEpObjCAdapterFramework/PEPConstants.h	Mon Jan 13 13:46:19 2020 +0100
     2.2 +++ b/pEpObjCAdapterFramework/PEPConstants.h	Mon Jan 13 13:46:19 2020 +0100
     2.3 @@ -101,3 +101,6 @@
     2.4  
     2.5  /** The positive value of the header for "pEp-auto-consume". */
     2.6  extern NSString *const _Nonnull kPepValueAutoConsumeYes;
     2.7 +
     2.8 +/// The key to the flags, which control pEp sync behaviour of an identity
     2.9 +extern NSString *const _Nonnull kPepFlags;
     3.1 --- a/pEpObjCAdapterFramework/PEPConstants.m	Mon Jan 13 13:46:19 2020 +0100
     3.2 +++ b/pEpObjCAdapterFramework/PEPConstants.m	Mon Jan 13 13:46:19 2020 +0100
     3.3 @@ -66,3 +66,5 @@
     3.4  NSString *const _Nonnull kPepHeaderAutoConsume = @"pEp-auto-consume";
     3.5  
     3.6  NSString *const _Nonnull kPepValueAutoConsumeYes = @"yes";
     3.7 +
     3.8 +NSString *const _Nonnull kPepFlags = @"flags";