Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

57 lines (37 sloc) 1.495 kb
//
// MTLCoreDataTestModels.h
// Mantle
//
// Created by Justin Spahr-Summers on 2013-04-05.
// Copyright (c) 2013 GitHub. All rights reserved.
//
#import <Mantle/Mantle.h>
#import <CoreData/CoreData.h>
// Corresponds to the `Parent` entity.
@interface MTLParentTestModel : MTLModel <MTLManagedObjectSerializing>
// Associated with the `number` attribute.
@property (nonatomic, copy) NSString *numberString;
@property (nonatomic, copy) NSDate *date;
@property (nonatomic, copy) NSString *requiredString;
@property (nonatomic, copy) NSArray *orderedChildren;
@property (nonatomic, copy) NSSet *unorderedChildren;
@end
// Model for Parent entity which doesn't serialize required properties
@interface MTLParentIncorrectTestModel : MTLModel <MTLManagedObjectSerializing>
@end
// Corresponds to the `Child` entity.
@interface MTLChildTestModel : MTLModel <MTLManagedObjectSerializing>
// Associated with the `id` attribute.
@property (nonatomic, assign) NSUInteger childID;
@property (nonatomic, weak) MTLParentTestModel *parent1;
@property (nonatomic, weak) MTLParentTestModel *parent2;
@end
@interface MTLBadChildTestModel : MTLModel <MTLManagedObjectSerializing>
@property (nonatomic, assign) NSUInteger childID;
@end
// Claims to correspond to the `Empty` entity which lacks the `notSupported`
// property.
@interface MTLFailureModel : MTLModel <MTLManagedObjectSerializing>
// Not present in the `Empty` entity.
@property (nonatomic, assign) NSString *notSupported;
@end
Jump to Line
Something went wrong with that request. Please try again.