pEpObjCAdapterFramework/NSNumber+PEPRating.h
branchIOS-1480
changeset 855 3b6826f819a2
parent 854 90b58075e2a1
child 902 32760267cd59
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/pEpObjCAdapterFramework/NSNumber+PEPRating.h	Fri Mar 01 16:03:28 2019 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +//
     1.5 +//  NSNumber+PEPRating.h
     1.6 +//  pEpObjCAdapter
     1.7 +//
     1.8 +//  Created by Dirk Zimmermann on 13.04.18.
     1.9 +//  Copyright © 2018 p≡p. All rights reserved.
    1.10 +//
    1.11 +
    1.12 +#import <Foundation/Foundation.h>
    1.13 +
    1.14 +#import <PEPObjCAdapterFramework/PEPTypes.h>
    1.15 +#import <PEPObjCAdapterFramework/PEPEngineTypes.h>
    1.16 +
    1.17 +/**
    1.18 + Extension for wrapping the engine's PEP_rating inside a NSNumber.
    1.19 + */
    1.20 +@interface NSNumber (Extension)
    1.21 +
    1.22 +@property (nonatomic, readonly) PEPRating pEpRating;
    1.23 +
    1.24 +- initWithPEPRating:(PEPRating)pEpRating;
    1.25 +
    1.26 ++ (NSNumber *)numberWithPEPRating:(PEPRating)pEpRating;
    1.27 +
    1.28 +@end