This repository was archived by the owner on Sep 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathRemotePost.h
More file actions
66 lines (58 loc) · 2.41 KB
/
Copy pathRemotePost.h
File metadata and controls
66 lines (58 loc) · 2.41 KB
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
#import <Foundation/Foundation.h>
@class RemotePostAutosave;
extern NSString * const PostStatusDraft;
extern NSString * const PostStatusPending;
extern NSString * const PostStatusPrivate;
extern NSString * const PostStatusPublish;
extern NSString * const PostStatusScheduled;
extern NSString * const PostStatusTrash;
extern NSString * const PostStatusDeleted;
@interface RemotePost : NSObject
- (id)initWithSiteID:(NSNumber *)siteID status:(NSString *)status title:(NSString *)title content:(NSString *)content;
- (NSString *)contentHash;
@property (nonatomic, strong) NSNumber *postID;
@property (nonatomic, strong) NSNumber *siteID;
@property (nonatomic, strong) NSString *authorAvatarURL;
@property (nonatomic, strong) NSString *authorDisplayName;
@property (nonatomic, strong) NSString *authorEmail;
@property (nonatomic, strong) NSString *authorURL;
@property (nonatomic, strong) NSNumber *authorID;
@property (nonatomic, strong) NSDate *date;
@property (nonatomic, strong) NSDate *dateModified;
@property (nonatomic, strong) NSString *title;
@property (nonatomic, strong) NSURL *URL;
@property (nonatomic, strong) NSURL *shortURL;
@property (nonatomic, strong) NSString *content;
@property (nonatomic, strong) NSString *excerpt;
@property (nonatomic, strong) NSString *slug;
@property (nonatomic, strong) NSString *suggestedSlug;
@property (nonatomic, strong) NSString *status;
@property (nonatomic, strong) NSString *password;
@property (nonatomic, strong) NSNumber *parentID;
@property (nonatomic, strong) NSNumber *postThumbnailID;
@property (nonatomic, strong) NSString *postThumbnailPath;
@property (nonatomic, strong) NSString *type;
@property (nonatomic, strong) NSString *format;
/**
* A snapshot of the post at the last autosave.
*
* This is nullable.
*/
@property (nonatomic, strong) RemotePostAutosave *autosave;
@property (nonatomic, strong) NSNumber *commentCount;
@property (nonatomic, strong) NSNumber *likeCount;
@property (nonatomic, strong) NSArray *categories;
@property (nonatomic, strong) NSArray *revisions;
@property (nonatomic, strong) NSArray *tags;
@property (nonatomic, strong) NSString *pathForDisplayImage;
@property (nonatomic, assign) NSNumber *isStickyPost;
@property (nonatomic, assign) BOOL isFeaturedImageChanged;
/**
Array of custom fields. Each value is a dictionary containing {ID, key, value}
*/
@property (nonatomic, strong) NSArray *metadata;
// Featured images?
// Geolocation?
// Attachments?
// Metadata?
@end