This repository has been archived by the owner on Aug 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathORSTimelineCacheManager.h
52 lines (44 loc) · 1.75 KB
/
ORSTimelineCacheManager.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
//
// ORSTimelineCacheManager.h
// Timeline Cache Controller
//
// Created by Nicholas Toumpelis on 12/04/2009.
// Copyright 2009 Ocean Road Software. All rights reserved.
//
// Version 0.7
#import <Cocoa/Cocoa.h>
enum {
ORSFollowingTimelineCacheType = 1,
ORSArchiveTimelineCacheType = 2,
ORSPublicTimelineCacheType = 3,
ORSRepliesTimelineCacheType = 4,
ORSFavoritesTimelineCacheType = 5,
ORSReceivedMessagesTimelineCacheType = 6,
ORSSentMessagesTimelineCacheType = 7
};
typedef NSUInteger ORSTimelineCacheTypes;
@interface ORSTimelineCacheManager : NSObject {
// Intermediate caches
NSMutableArray *followingStatusCache, *repliesStatusCache,
*publicStatusCache, *archiveStatusCache, *receivedMessagesCache,
*sentMessagesCache, *favoritesStatusCache;
BOOL firstFollowingCall, firstRepliesCall, firstPublicCall,
firstArchiveCall, firstReceivedMessagesCall, firstSentMessagesCall,
firstFavoriteCall;
NSString *lastFollowingStatusID, *lastReplyStatusID, *lastPublicStatusID,
*lastArchiveStatusID, *lastReceivedMessageID, *lastSentMessageID,
*lastFavoriteStatusID;
}
- (void) resetAllCaches;
- (NSMutableArray *) setStatusesForTimelineCache:(NSUInteger)timelineCacheType
withNotification:(NSNotification *)note;
@property(copy) NSMutableArray *followingStatusCache, *repliesStatusCache,
*publicStatusCache, *archiveStatusCache, *receivedMessagesCache,
*sentMessagesCache, *favoritesStatusCache;
@property() BOOL firstFollowingCall, firstRepliesCall, firstPublicCall,
firstArchiveCall, firstReceivedMessagesCall,
firstSentMessagesCall, firstFavoriteCall;
@property(copy) NSString *lastFollowingStatusID, *lastReplyStatusID,
*lastPublicStatusID, *lastArchiveStatusID, *lastReceivedMessageID,
*lastSentMessageID, *lastFavoriteStatusID;
@end