mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
35 lines
950 B
Objective-C
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
|