Skip to content

Instantly share code, notes, and snippets.

@jessicamoore112
Created May 11, 2013 00:58
Show Gist options
  • Save jessicamoore112/5558473 to your computer and use it in GitHub Desktop.
Save jessicamoore112/5558473 to your computer and use it in GitHub Desktop.
TESTImports
//
// TheFeedStore.h
// Sample1
//
// Copyright (c) 2013 LastDemo. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "CoreData/CoreData.h"
@class RSSChannel;
@class RSSItem;
@interface TheFeedStore : NSObject
{
NSManagedObjectContext *context;
NSManagedObjectModel *model;
BOOL isLoading;
}
@property BOOL isLoading;
+ (TheFeedStore *) sharedStore;
- (RSSChannel *)fetchWebService:(NSInteger)count withCompletion:(void (^) (RSSChannel *obj, NSError *err))block;
- (RSSChannel *)fetchIPhoneWebService:(NSInteger)count withCompletion:(void (^) (RSSChannel *obj, NSError *err))block;
- (RSSChannel *)fetchIPadWebService:(NSInteger)count withCompletion:(void (^) (RSSChannel *obj, NSError *err))block;
- (RSSChannel *)fetchIOSWebService:(NSInteger)count withCompletion:(void (^) (RSSChannel *obj, NSError *err))block;
- (void) markItemAsRead:(RSSItem *) item;
- (BOOL) hasItemBeenRead:(RSSItem *) item;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment