pEpObjCAdapterFramework/NSNumber+PEPRating.h
author Dirk Zimmermann <dz@pep.security>
Wed, 20 Mar 2019 16:40:35 +0100
branchIOS-1480
changeset 902 32760267cd59
parent 855 3b6826f819a2
permissions -rw-r--r--
IOS-1480 Avoid framework imports.
     1 //
     2 //  NSNumber+PEPRating.h
     3 //  pEpObjCAdapter
     4 //
     5 //  Created by Dirk Zimmermann on 13.04.18.
     6 //  Copyright © 2018 p≡p. All rights reserved.
     7 //
     8 
     9 #import <Foundation/Foundation.h>
    10 
    11 #import "PEPTypes.h"
    12 #import "PEPEngineTypes.h"
    13 
    14 /**
    15  Extension for wrapping the engine's PEP_rating inside a NSNumber.
    16  */
    17 @interface NSNumber (Extension)
    18 
    19 @property (nonatomic, readonly) PEPRating pEpRating;
    20 
    21 - initWithPEPRating:(PEPRating)pEpRating;
    22 
    23 + (NSNumber *)numberWithPEPRating:(PEPRating)pEpRating;
    24 
    25 @end