Skip to content

Instantly share code, notes, and snippets.

@eofster
Created August 8, 2016 12:26
Show Gist options
  • Save eofster/6b97202adbe28e4509c4f4d1a27aab21 to your computer and use it in GitHub Desktop.
Save eofster/6b97202adbe28e4509c4f4d1a27aab21 to your computer and use it in GitHub Desktop.
Objective-C version of the receipt attributes validation. Header file
@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