-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGame+GameModel.h
26 lines (16 loc) · 1.1 KB
/
Game+GameModel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//
// Game+GameModel.h
// Ludow2
//
// Created by Guillaume ESTREM on 30/03/2015.
// Copyright (c) 2015 JACQUEZ_ESTREM. All rights reserved.
//
#import "Game.h"
@interface Game (GameModel)
+(void) addGame:(NSString *) gameName withEntity:(NSEntityDescription *) entity inManagedObjectContext :(NSManagedObjectContext *) context ;
+(int) UpdateGame:(NSString *) gameName withNewGame:(NSString*)newGameName withEntity:(NSEntityDescription *) entity inManagedObjectContext :(NSManagedObjectContext *) context ;
+(int) addCategoryToGame:(NSString *) gameName withGameCategory:(GameCategory*)gameCategory withEntity:(NSEntityDescription *) entity inManagedObjectContext :(NSManagedObjectContext *) context ;
+(int) deleteGame:(NSString *) gameName withEntity:(NSEntityDescription *) entity inManagedObjectContext :(NSManagedObjectContext *) context ;
+(NSMutableArray* ) getAllGames:(NSEntityDescription *) entity inManagedObjectContext :(NSManagedObjectContext *) context ;
+(Game*) getGame:(NSString *) gameName withEntity:(NSEntityDescription *) entity inManagedObjectContext :(NSManagedObjectContext *) context ;
@end