-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
134 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,36 @@ | ||
// | ||
// Event.m | ||
// The Blue Alliance | ||
// the-blue-alliance-ios | ||
// | ||
// Created by Donald Pinckney on 5/5/14. | ||
// Created by Donald Pinckney on 5/22/14. | ||
// Copyright (c) 2014 The Blue Alliance. All rights reserved. | ||
// | ||
|
||
#import "Event.h" | ||
#import "Team.h" | ||
|
||
|
||
@implementation Event | ||
|
||
@dynamic address; | ||
@dynamic district_enum; | ||
@dynamic end_date; | ||
@dynamic event_short; | ||
@dynamic event_type; | ||
@dynamic key; | ||
@dynamic last_updated; | ||
@dynamic location; | ||
@dynamic name; | ||
@dynamic event_type; | ||
@dynamic official; | ||
@dynamic short_name; | ||
@dynamic event_short; | ||
@dynamic year; | ||
@dynamic district_enum; | ||
@dynamic start_date; | ||
@dynamic end_date; | ||
@dynamic venue; | ||
@dynamic address; | ||
@dynamic location; | ||
@dynamic stats; | ||
@dynamic timezone; | ||
@dynamic official; | ||
@dynamic website; | ||
@dynamic venue; | ||
@dynamic webcasts; | ||
@dynamic stats; | ||
@dynamic website; | ||
@dynamic year; | ||
@dynamic rankings; | ||
@dynamic last_updated; | ||
@dynamic teams; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// Team.h | ||
// the-blue-alliance-ios | ||
// | ||
// Created by Donald Pinckney on 5/22/14. | ||
// Copyright (c) 2014 The Blue Alliance. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <CoreData/CoreData.h> | ||
|
||
@class Event; | ||
|
||
@interface Team : NSManagedObject | ||
|
||
@property (nonatomic, retain) NSString *key; | ||
@property (nonatomic, retain) NSNumber *number; | ||
@property (nonatomic, retain) NSString *name; | ||
@property (nonatomic, retain) NSString *nickname; | ||
@property (nonatomic, retain) NSString *address; | ||
@property (nonatomic, retain) NSNumber *last_updated; | ||
|
||
@property (nonatomic, retain) NSSet *events; | ||
@end | ||
|
||
@interface Team (CoreDataGeneratedAccessors) | ||
|
||
- (void)addEventsObject:(Event *)value; | ||
- (void)removeEventsObject:(Event *)value; | ||
|
||
- (void)addEvents:(NSSet *)values; | ||
- (void)removeEvents:(NSSet *)values; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// Team.m | ||
// the-blue-alliance-ios | ||
// | ||
// Created by Donald Pinckney on 5/22/14. | ||
// Copyright (c) 2014 The Blue Alliance. All rights reserved. | ||
// | ||
|
||
#import "Team.h" | ||
#import "Event.h" | ||
|
||
|
||
@implementation Team | ||
|
||
@dynamic key; | ||
@dynamic number; | ||
@dynamic name; | ||
@dynamic nickname; | ||
@dynamic address; | ||
@dynamic last_updated; | ||
@dynamic events; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6f0b666
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... I broke something here with the event model. The table view now comes up empty (see #4)