NewsBlur/clients/ios/Classes/FeedChooserItem.h
David Sinclair 68d87578ae iOS: feed chooser mute & organize sites done
Both the Mute Sites & Organize Sites features are now fully functional.
2016-01-28 21:19:04 -08:00

35 lines
950 B
Objective-C

//
// FeedChooserItem.h
// NewsBlur
//
// Created by David Sinclair on 2016-01-23.
// Copyright © 2016 NewsBlur. All rights reserved.
//
@interface FeedChooserItem : NSObject
typedef NS_ENUM(NSUInteger, FeedChooserSort)
{
FeedChooserSortName = 0,
FeedChooserSortSubscribers,
FeedChooserSortFrequency,
FeedChooserSortRecency,
FeedChooserSortOpens
};
@property (nonatomic, readonly) id identifier;
@property (nonatomic, readonly) NSString *identifierString;
@property (nonatomic, readonly) NSString *title;
@property (nonatomic, readonly) UIImage *icon;
@property (nonatomic, strong) NSDictionary *info;
@property (nonatomic, strong) NSMutableArray *contents;
+ (instancetype)makeFolderWithTitle:(NSString *)title;
+ (instancetype)makeItemWithInfo:(NSDictionary *)info;
- (void)addItemWithInfo:(NSDictionary *)info;
+ (NSString *)keyForSort:(FeedChooserSort)sort;
- (NSString *)detailForSort:(FeedChooserSort)sort;
@end