Created
August 8, 2016 12:26
-
-
Save eofster/6b97202adbe28e4509c4f4d1a27aab21 to your computer and use it in GitHub Desktop.
Objective-C version of the receipt attributes validation. Header file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import Foundation; | |
#import "ReceiptValidation.h" | |
@protocol ReceiptAttributes; | |
NS_ASSUME_NONNULL_BEGIN | |
@interface ReceiptAttributesValidation : NSObject <ReceiptValidation> | |
- (instancetype)initWithOrigin:(id<ReceiptValidation>)origin attributes:(id<ReceiptAttributes>)attributes NS_DESIGNATED_INITIALIZER; | |
- (instancetype)init NS_UNAVAILABLE; | |
@end | |
@protocol ReceiptAttributes <NSObject> | |
@property(readonly) NSString *identifier; | |
@property(readonly) NSString *version; | |
@property(readonly) NSData *guid; | |
@end | |
NS_ASSUME_NONNULL_END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment