Browse Source

IOS-1480 New colorFromRating.

IOS-1480
Dirk Zimmermann 3 years ago
parent
commit
59b1596be9
3 changed files with 16 additions and 0 deletions
  1. +5
    -0
      pEpObjCAdapter/PEPInternalSession.m
  2. +6
    -0
      pEpObjCAdapter/PEPSession.m
  3. +5
    -0
      pEpObjCAdapterFramework/PEPSessionProtocol.h

+ 5
- 0
pEpObjCAdapter/PEPInternalSession.m View File

@ -961,4 +961,9 @@ static NSDictionary *stringToRating;
}
}
- (PEPColor)colorFromRating:(PEPRating)rating
{
return (PEPColor) color_from_rating((PEP_rating) rating);
}
@end

+ 6
- 0
pEpObjCAdapter/PEPSession.m View File

@ -362,4 +362,10 @@
return [session deliverHandshakeResult:result forPartner:partner error:error];
}
- (PEPColor)colorFromRating:(PEPRating)rating
{
PEPInternalSession *session = [PEPSessionProvider session];
return [session colorFromRating:rating];
}
@end

+ 5
- 0
pEpObjCAdapterFramework/PEPSessionProtocol.h View File

@ -255,4 +255,9 @@
- (BOOL)trustOwnKeyIdentity:(PEPIdentity *)identity
error:(NSError * _Nullable * _Nullable)error;
/**
Wraps color_from_rating.
*/
- (PEPColor)colorFromRating:(PEPRating)rating;
@end

Loading…
Cancel
Save