Today's Menu  Portugal
journal and plan nutrition
Meal+CoreDataClass.h
Go to the documentation of this file.
1 //
2 // Meal+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 MenuItem;
14 
15 NS_ASSUME_NONNULL_BEGIN
16 
17 @interface Meal : NSManagedObject
18 
19 + (NSArray<Meal *> *) findMealsWithDate:(NSDate *)findDate context:(NSManagedObjectContext *)moc;
20 // + (NSArray<Meal *> *) findMealsInMonthWithDate:(NSDate *)findDate context:(NSManagedObjectContext *)moc;
21 + (NSArray<Meal *> *) findOrCreateMealWithDate:(NSDate *)findDate context:(NSManagedObjectContext *)moc;
22 + (NSArray<Meal *> *) findMealsByMonth:(NSDate *)nowdate context:(NSManagedObjectContext *)moc;
23 + (NSArray *) retrieveAllMealsForGallery:(NSNumber *)mealGallery context:(NSManagedObjectContext *)moc;
24 + (void) deleteMealsByMonth:(NSDate *)nowdate context:(NSManagedObjectContext *)moc;
25 + (void) deleteMealByRandomkey:(NSString *)deleteKey context:(NSManagedObjectContext *)moc;
26 
27 @end
28 
29 NS_ASSUME_NONNULL_END
30