-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBNRFeedStore.h
More file actions
34 lines (24 loc) · 778 Bytes
/
BNRFeedStore.h
File metadata and controls
34 lines (24 loc) · 778 Bytes
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
//
// BNRFeedStore.h
// Nerdfeed
//
// Created by THOMAS PENG on 6/24/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@class RSSChannel;
@class RSSItem;
extern NSString * const BNRFeedStoreUpdateNotification;
@interface BNRFeedStore : NSObject
{
NSManagedObjectContext *context;
NSManagedObjectModel *model;
}
@property (nonatomic, strong) NSDate *topSongsCacheDate;
+ (BNRFeedStore *)sharedStore;
- (void)fetchTopSongs:(int)count withCompletion:(void (^)(RSSChannel *obj, NSError *err))block;
- (RSSChannel *)fetchRSSFeedWithCompletion:(void (^)(RSSChannel *obj, NSError *err))block;
- (void)markItemAsRead:(RSSItem *)item;
- (BOOL)hasItemBeenRead:(RSSItem *)item;
@end