forked from EthanArbuckle/Apollo-CustomApiCredentials
-
Notifications
You must be signed in to change notification settings - Fork 19
/
UserDefaultConstants.h
25 lines (23 loc) · 908 Bytes
/
UserDefaultConstants.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
// UserDefaults keys
static NSString *const UDKeyRedditClientId = @"RedditApiClientId";
static NSString *const UDKeyImgurClientId = @"ImgurApiClientId";
static NSString *const UDKeyBlockAnnouncements = @"DisableApollonouncements";
static NSString *const UDKeyEnableFLEX = @"EnableFlexDebugging";
static NSString *const UDKeyApolloShowUnreadComments = @"ShowUnreadComments";
/*
The UserDefaults key 'PostCommentsSnapshots' stores a snapshot JSON array of post IDs and their last-read timestamps and total comments:
[
"<post id 1>",
{
"timestamp": 726627090.96476996, // Reference date of January 2001
"totalComments": 442
},
"<post id 2>",
{
"timestamp": 726627790.97460103,
"totalComments": 62
},
...
]
*/
static NSString *const UDKeyApolloPostCommentsSnapshots = @"PostCommentsSnapshots";