Commit 66d34e3a by Dima Bart

Add typed collection to BUYOrder.

parent 595b8d18
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
@interface BUYOrder : _BUYOrder {} @interface BUYOrder : _BUYOrder {}
- (NSArray<BUYLineItem *> *)lineItemsArray;
@end @end
@interface BUYModelManager (BUYOrder) @interface BUYModelManager (BUYOrder)
......
...@@ -29,6 +29,11 @@ ...@@ -29,6 +29,11 @@
@implementation BUYOrder @implementation BUYOrder
- (NSArray<BUYLineItem *> *)lineItemsArray
{
return self.lineItems.array;
}
- (NSArray *)formatIDsForLineItemsJSON:(NSArray<NSDictionary *> *)lineItems - (NSArray *)formatIDsForLineItemsJSON:(NSArray<NSDictionary *> *)lineItems
{ {
__block NSMutableArray<NSDictionary *> *mutableLineItems = [NSMutableArray array]; __block NSMutableArray<NSDictionary *> *mutableLineItems = [NSMutableArray array];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment