@MarshalsPointer public static SKReceiptRefreshRequestOptions toObject(Class<SKReceiptRefreshRequestOptions> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new SKReceiptRefreshRequestOptions(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(List<SKReceiptRefreshRequestOptions> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (SKReceiptRefreshRequestOptions i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); } }
/** * @since Available in iOS 7.0 and later. */ public SKReceiptRefreshRequestOptions setVolumePurchase(boolean volumePurchase) { set(Keys.IsVolumePurchase(), NSNumber.valueOf(volumePurchase)); return this; } /*</methods>*/
public NSObject get(NSString key) { if (has(key)) { return data.get(key); } return null; } public SKReceiptRefreshRequestOptions set(NSString key, NSObject value) {
/** * @since Available in iOS 7.0 and later. */ public SKReceiptRefreshRequestOptions setExpired(boolean expired) { set(Keys.IsExpired(), NSNumber.valueOf(expired)); return this; } /**
public NSObject get(NSString key) { if (has(key)) { return data.get(key); } return null; } public SKReceiptRefreshRequestOptions set(NSString key, NSObject value) {
/** * @since Available in iOS 7.0 and later. */ public SKReceiptRefreshRequestOptions setRevoked(boolean revoked) { set(Keys.IsRevoked(), NSNumber.valueOf(revoked)); return this; } /**
@MarshalsPointer public static List<SKReceiptRefreshRequestOptions> toObject(Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSDictionary> o = (NSArray<NSDictionary>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<SKReceiptRefreshRequestOptions> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new SKReceiptRefreshRequestOptions(o.get(i))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(List<SKReceiptRefreshRequestOptions> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (SKReceiptRefreshRequestOptions i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); } }
public NSObject get(NSString key) { if (has(key)) { return data.get(key); } return null; } public SKReceiptRefreshRequestOptions set(NSString key, NSObject value) {
/** * @since Available in iOS 7.0 and later. */ public SKReceiptRefreshRequestOptions setVolumePurchase(boolean volumePurchase) { set(Keys.IsVolumePurchase(), NSNumber.valueOf(volumePurchase)); return this; } /*</methods>*/
@MarshalsPointer public static SKReceiptRefreshRequestOptions toObject(Class<SKReceiptRefreshRequestOptions> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new SKReceiptRefreshRequestOptions(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(List<SKReceiptRefreshRequestOptions> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (SKReceiptRefreshRequestOptions i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); } }
/** * @since Available in iOS 7.0 and later. */ public SKReceiptRefreshRequestOptions setExpired(boolean expired) { set(Keys.IsExpired(), NSNumber.valueOf(expired)); return this; } /**
@MarshalsPointer public static SKReceiptRefreshRequestOptions toObject(Class<SKReceiptRefreshRequestOptions> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new SKReceiptRefreshRequestOptions(o); } @MarshalsPointer