-
Notifications
You must be signed in to change notification settings - Fork 1
/
GameCategory+GameCategoryModel.h
23 lines (17 loc) · 1.11 KB
/
GameCategory+GameCategoryModel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//
// GameCategory+GameCategoryModel.h
// Ludow2
//
// Created by Guillaume ESTREM on 23/03/2015.
// Copyright (c) 2015 JACQUEZ_ESTREM. All rights reserved.
//
#import "GameCategory.h"
#import "AppDelegate.h"
@interface GameCategory (GameCategoryModel)
@property (weak,nonatomic) AppDelegate* appDelegate;
+(NSMutableArray* ) getAllGameCategories:(NSEntityDescription *) entity inManagedObjectContext :(NSManagedObjectContext *) context ;
+(GameCategory*) getGameCategory:(NSString *) categoryName withEntity:(NSEntityDescription *) entityDesc inManagedObjectContext :(NSManagedObjectContext *) context ;
+(void) addGameCategory:(NSString *) categoryName withEntity:(NSEntityDescription *) entity inManagedObjectContext :(NSManagedObjectContext *) context ;
+(int) deleteGameCategory:(NSString *) categoryName withEntity:(NSEntityDescription *) entity inManagedObjectContext :(NSManagedObjectContext *) context ;
+(int) updateGameCategory:(NSString *) categoryNameToUpdate withCategoryName :(NSString *) newGameCategory withEntity:(NSEntityDescription *) entity inManagedObjectContext :(NSManagedObjectContext *) context ;
@end