Today's Menu  Portugal
journal and plan nutrition
MenuItem+CoreDataClass.h
Go to the documentation of this file.
1 //
2 // MenuItem+CoreDataClass.h
3 // TodaysMenu
4 //
5 // Created by Don Zeek on 6/7/18.
6 // Copyright © 2018 net.dzeek.y2015.ios.portfolio. All rights reserved.
7 //
8 //
9 
10 #import <Foundation/Foundation.h>
11 #import <CoreData/CoreData.h>
12 
13 @class Meal;
14 @class MenuItem;
15 
16 NS_ASSUME_NONNULL_BEGIN
17 
18 @interface MenuItem : NSManagedObject
19 
20 + (MenuItem *) findMenuItemWithRandomkey:(NSString *)randomkey context:(NSManagedObjectContext *)moc;
21 + (MenuItem *) findOrCreateMenuItemWithRandomkey:(NSString *)key context:(NSManagedObjectContext *) moc;
22 // + (MenuItem *) findOrCreateMenuItemWithUID:(NSString *)key context:(NSManagedObjectContext *)moc;
23 + (MenuItem *) findMenuItemWithFileIdentification:(NSString *)googlefileid
24  context:(NSManagedObjectContext *) moc;
25 + (MenuItem *) findOrCreateMenuItemWithFileIdentification:(NSString *)googlefileid context:(NSManagedObjectContext *)moc;
26 + (MenuItem *) findNextMenuItemForGallery: (NSNumber *) galleryNo
27  afterPosition: (NSNumber *) positionInGallery
28  context: (NSManagedObjectContext *)moc;
29 + (NSArray<MenuItem *> *) retrieveAllMenuItemsForGallery:(NSNumber *) galleryNo
30  context:(NSManagedObjectContext *)moc;
31 + (NSArray *) menuItemWithKey:(NSString *)randomkey context:(NSManagedObjectContext *)moc;
32 + (NSArray *) menuItemWithFileid:(NSString *)googlefileid context:(NSManagedObjectContext *)moc;
33 
34 @end
35 
36 NS_ASSUME_NONNULL_END
37