2014-02-12 05:13:12 +00:00
|
|
|
/**
|
|
|
|
* Copyright Maarten Billemont (http://www.lhunath.com, lhunath@lyndir.com)
|
|
|
|
*
|
|
|
|
* See the enclosed file LICENSE for license information (LGPLv3). If you did
|
|
|
|
* not receive this file, see http://www.gnu.org/licenses/lgpl-3.0.txt
|
|
|
|
*
|
|
|
|
* @author Maarten Billemont <lhunath@lyndir.com>
|
|
|
|
* @license http://www.gnu.org/licenses/lgpl-3.0.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
//
|
|
|
|
// MPElementModel.h
|
|
|
|
// MPElementModel
|
|
|
|
//
|
|
|
|
// Created by lhunath on 2/11/2014.
|
|
|
|
// Copyright, lhunath (Maarten Billemont) 2014. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
2014-09-21 14:39:09 +00:00
|
|
|
@class MPSiteEntity;
|
2014-02-12 05:13:12 +00:00
|
|
|
|
|
|
|
@interface MPElementModel : NSObject
|
2014-06-24 04:55:08 +00:00
|
|
|
|
|
|
|
@property (nonatomic) NSString *siteName;
|
2014-09-21 14:39:09 +00:00
|
|
|
@property (nonatomic) MPSiteType type;
|
2014-05-19 18:37:05 +00:00
|
|
|
@property (nonatomic) NSString *typeName;
|
|
|
|
@property (nonatomic) NSString *content;
|
2014-06-29 03:45:06 +00:00
|
|
|
@property (nonatomic) NSString *contentDisplay;
|
2014-05-19 18:37:05 +00:00
|
|
|
@property (nonatomic) NSString *loginName;
|
|
|
|
@property (nonatomic) NSNumber *uses;
|
2014-02-21 05:19:24 +00:00
|
|
|
@property (nonatomic) NSUInteger counter;
|
2014-05-19 18:37:05 +00:00
|
|
|
@property (nonatomic) NSDate *lastUsed;
|
|
|
|
@property (nonatomic) id<MPAlgorithm> algorithm;
|
2014-06-26 05:19:42 +00:00
|
|
|
@property (nonatomic) BOOL generated;
|
|
|
|
@property (nonatomic) BOOL stored;
|
2014-02-12 05:13:12 +00:00
|
|
|
|
2014-09-21 14:39:09 +00:00
|
|
|
- (id)initWithEntity:(MPSiteEntity *)entity;
|
|
|
|
- (MPSiteEntity *)entityInContext:(NSManagedObjectContext *)moc;
|
2014-02-12 05:13:12 +00:00
|
|
|
|
2014-06-27 03:13:21 +00:00
|
|
|
- (void)updateContent;
|
2014-02-12 05:13:12 +00:00
|
|
|
@end
|