NewsBlur/clients/ios/Classes/FeedChooserItem.h
David Sinclair 7f0ffdf2b7 iOS: feed chooser
Mute Sites and Organize Sites views.
2016-01-27 20:52:09 -08:00

34 lines
897 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) NSString *identifier;
@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