Browse Source

IOSAD-121 Handle (and document) corner cases.

IOSAD-121
Dirk Zimmermann 3 years ago
parent
commit
191d034867
2 changed files with 10 additions and 0 deletions
  1. +9
    -0
      pEpObjCAdapter/PEPSession.m
  2. +1
    -0
      pEpObjCAdapterFramework/PEPSessionProtocol.h

+ 9
- 0
pEpObjCAdapter/PEPSession.m View File

@ -355,12 +355,18 @@
- (PEPRating)ratingFromString:(NSString * _Nonnull)string
{
PEPInternalSession *session = [PEPSessionProvider session];
if (session == nil) {
return PEPRatingUndefined;
}
return [session ratingFromString:string];
}
- (NSString * _Nonnull)stringFromRating:(PEPRating)rating
{
PEPInternalSession *session = [PEPSessionProvider session];
if (session == nil) {
return @"undefined";
}
return [session stringFromRating:rating];
}
@ -415,6 +421,9 @@
- (PEPColor)colorFromRating:(PEPRating)rating
{
PEPInternalSession *session = [PEPSessionProvider session];
if (session == nil) {
return PEP_color_no_color;
}
return [session colorFromRating:rating];
}


+ 1
- 0
pEpObjCAdapterFramework/PEPSessionProtocol.h View File

@ -242,6 +242,7 @@
/**
Wraps the engine's `config_passive_mode`.
@note That there's absolutely no error handling.
*/
- (void)configurePassiveModeEnabled:(BOOL)enabled;


Loading…
Cancel
Save