2014-09-21 14:49:57 +00:00
|
|
|
//
|
|
|
|
// MPSiteEntity.h
|
|
|
|
// MasterPassword-Mac
|
|
|
|
//
|
|
|
|
// Created by Maarten Billemont on 2014-09-21.
|
|
|
|
// Copyright (c) 2014 Lyndir. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import <CoreData/CoreData.h>
|
|
|
|
|
|
|
|
@class MPSiteQuestionEntity, MPUserEntity;
|
|
|
|
|
|
|
|
@interface MPSiteEntity : NSManagedObject
|
|
|
|
|
|
|
|
//@property (nonatomic, retain) id content; // Hide here, reveal in MPStoredSiteEntity
|
2017-04-01 04:30:25 +00:00
|
|
|
@property(nonatomic, retain) NSDate *lastUsed;
|
|
|
|
@property(nonatomic, retain) NSNumber *loginGenerated_;
|
|
|
|
@property(nonatomic, retain) NSString *loginName;
|
|
|
|
@property(nonatomic, retain) NSString *name;
|
|
|
|
@property(nonatomic, retain) NSNumber *requiresExplicitMigration_;
|
|
|
|
@property(nonatomic, retain) NSNumber *type_;
|
|
|
|
@property(nonatomic, retain) NSNumber *uses_;
|
|
|
|
@property(nonatomic, retain) NSNumber *version_;
|
|
|
|
@property(nonatomic, retain) NSOrderedSet *questions;
|
|
|
|
@property(nonatomic, retain) MPUserEntity *user;
|
2014-09-21 14:49:57 +00:00
|
|
|
@end
|
|
|
|
|
2017-04-01 04:30:25 +00:00
|
|
|
@interface MPSiteEntity(CoreDataGeneratedAccessors)
|
2014-09-21 14:49:57 +00:00
|
|
|
|
|
|
|
- (void)insertObject:(MPSiteQuestionEntity *)value inQuestionsAtIndex:(NSUInteger)idx;
|
|
|
|
- (void)removeObjectFromQuestionsAtIndex:(NSUInteger)idx;
|
|
|
|
- (void)insertQuestions:(NSArray *)value atIndexes:(NSIndexSet *)indexes;
|
|
|
|
- (void)removeQuestionsAtIndexes:(NSIndexSet *)indexes;
|
|
|
|
- (void)replaceObjectInQuestionsAtIndex:(NSUInteger)idx withObject:(MPSiteQuestionEntity *)value;
|
|
|
|
- (void)replaceQuestionsAtIndexes:(NSIndexSet *)indexes withQuestions:(NSArray *)values;
|
|
|
|
- (void)addQuestionsObject:(MPSiteQuestionEntity *)value;
|
|
|
|
- (void)removeQuestionsObject:(MPSiteQuestionEntity *)value;
|
|
|
|
- (void)addQuestions:(NSOrderedSet *)values;
|
|
|
|
- (void)removeQuestions:(NSOrderedSet *)values;
|
|
|
|
@end
|