Browse Source

IOSAD-72 adapt ratingFromString to usual PEPInternalSession trampoline

IOSAD-92
Dirk Zimmermann 4 years ago
parent
commit
0593f60371
1 changed files with 4 additions and 14 deletions
  1. +4
    -14
      pEpObjCAdapter/PEPSession.m

+ 4
- 14
pEpObjCAdapter/PEPSession.m View File

@ -258,12 +258,14 @@
- (PEP_rating)ratingFromString:(NSString * _Nonnull)string
{
return [PEPSession ratingFromString:string];
PEPInternalSession *session = [PEPSessionProvider session];
return [session ratingFromString:string];
}
- (NSString * _Nonnull)stringFromRating:(PEP_rating)rating
{
return [PEPSession stringFromRating:rating];
PEPInternalSession *session = [PEPSessionProvider session];
return [session stringFromRating:rating];
}
- (BOOL)isPEPUser:(PEPIdentity * _Nonnull)identity
@ -279,18 +281,6 @@
#pragma mark Internal API (testing etc.)
+ (PEP_rating)ratingFromString:(NSString * _Nonnull)string
{
PEPInternalSession *session = [PEPSessionProvider session];
return [session ratingFromString:string];
}
+ (NSString * _Nonnull)stringFromRating:(PEP_rating)rating
{
PEPInternalSession *session = [PEPSessionProvider session];
return [session stringFromRating:rating];
}
+ (BOOL)isPEPUser:(PEPIdentity * _Nonnull)identity;
{
PEPInternalSession *session = [PEPSessionProvider session];


Loading…
Cancel
Save