forked from Automattic/simplenote-macos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Note.h
78 lines (72 loc) · 2.37 KB
/
Note.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
//
// Note.h
// Simplenote
//
// Created by Michael Johnston on 01/07/08.
// Copyright 2008 Simperium. All rights reserved.
//
@import Simperium_OSX;
@interface Note : SPManagedObject {
NSString *content;
NSString *modificationDatePreview;
NSString *creationDatePreview;
NSString *titlePreview;
NSString *contentPreview;
NSString *shareURL;
NSString *publishURL;
NSDate *creationDate;
NSDate *modificationDate;
BOOL pinned;
BOOL markdown;
int lastPosition;
NSString *tags;
NSString *systemTags;
NSMutableArray *tagsArray;
NSMutableArray *systemTagsArray;
NSString *remoteId;
BOOL deleted;
BOOL shared;
BOOL published;
BOOL unread;
NSDictionary *versions;
}
@property (nonatomic, copy) NSString * content;
@property (nonatomic, copy) NSString * publishURL;
@property (nonatomic, copy) NSDate * modificationDate;
@property int lastPosition;
@property (nonatomic, copy) NSString * tags;
@property (nonatomic, strong) NSMutableArray *tagsArray;
@property BOOL deleted;
@property (nonatomic, copy) NSString * shareURL;
@property (nonatomic, copy) NSDate * creationDate;
@property (nonatomic, copy) NSString * systemTags;
@property (copy, nonatomic) NSString *modificationDatePreview;
@property (copy, nonatomic) NSString *creationDatePreview;
@property (copy, nonatomic) NSString *titlePreview;
@property (copy, nonatomic) NSString *contentPreview;
@property (assign, nonatomic) BOOL pinned;
@property (assign, nonatomic) BOOL markdown;
@property (assign, nonatomic) BOOL shared;
@property (assign, nonatomic) BOOL published;
@property (assign, nonatomic) BOOL unread;
- (NSString *)dateString:(NSDate *)date brief:(BOOL)brief;
- (NSString *)creationDateString:(BOOL)brief;
- (NSString *)modificationDateString:(BOOL)brief;
- (NSString *)getDateString:(NSDate *)date brief:(BOOL)brief;
- (NSString *)localID;
- (void)updateTagsArray;
- (void)updateSystemTagsArray;
- (BOOL)hasTags;
- (BOOL)hasTag:(NSString *)tag;
- (void)addTag:(NSString *)tag;
- (void)addSystemTag:(NSString *)tag;
- (void)setSystemTagsFromList:(NSArray *)tagList;
- (void)stripSystemTag:(NSString *)tag;
- (BOOL)hasSystemTag:(NSString *)tag;
- (void)setTagsFromList:(NSArray *)tagList;
- (void)stripTag:(NSString *)tag;
- (void)createPreviews:(NSString *)aString;
- (NSDictionary *)noteDictionaryWithContent:(BOOL)include;
- (void)updateFromDictionary:(NSDictionary *)note fromServer:(BOOL)synced;
- (BOOL)isList;
@end