-
Notifications
You must be signed in to change notification settings - Fork 1
/
Variant+VariantModel.h
25 lines (16 loc) · 1.15 KB
/
Variant+VariantModel.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
//
// Variant+VariantModel.h
// Ludow2
//
// Created by Guillaume ESTREM on 30/03/2015.
// Copyright (c) 2015 JACQUEZ_ESTREM. All rights reserved.
//
#import "Variant.h"
@interface Variant (VariantModel)
+(int) addVariant:(NSString *) variantName withMaxPlayers:(NSNumber*) maxPlayers withMinAge:(NSNumber*) minAge withEntity:(NSEntityDescription *) entityDesc inManagedObjectContext :(NSManagedObjectContext *) context ;
+(int) addThemeToVariant:(NSString *) variantName withTheme:(Theme*) aTheme withEntity:(NSEntityDescription *) entityDesc inManagedObjectContext :(NSManagedObjectContext *) context ;
+(int) addDifficultyToVariant:(NSString *) variantName withDifficulty:(Difficulty*) aDifficulty withEntity:(NSEntityDescription *) entityDesc inManagedObjectContext :(NSManagedObjectContext *) context ;
+(int) addGameToVariant:(NSString *) variantName withGame:(Game*) aGame withEntity:(NSEntityDescription *) entityDesc inManagedObjectContext :(NSManagedObjectContext *) context ;
+(Variant*) getVariant:(NSString *) variantName withEntity:(NSEntityDescription *) entityDesc inManagedObjectContext :(NSManagedObjectContext *) context ;
// add deleteVariant
@end