2010-07-15 00:44:38 -04:00
|
|
|
//
|
|
|
|
// FeedDetailTableCell.h
|
|
|
|
// NewsBlur
|
|
|
|
//
|
|
|
|
// Created by Samuel Clay on 7/14/10.
|
|
|
|
// Copyright 2010 NewsBlur. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
2012-07-22 17:08:29 -07:00
|
|
|
#import "NewsBlurAppDelegate.h"
|
2013-09-27 17:54:06 -07:00
|
|
|
#import "NBSwipeableCell.h"
|
2010-07-15 00:44:38 -04:00
|
|
|
|
2019-01-30 11:58:32 -08:00
|
|
|
typedef NS_ENUM(NSUInteger, FeedDetailTextSize)
|
|
|
|
{
|
|
|
|
FeedDetailTextSizeTitleOnly = 0,
|
|
|
|
FeedDetailTextSizeShort,
|
|
|
|
FeedDetailTextSizeMedium,
|
|
|
|
FeedDetailTextSizeLong
|
|
|
|
};
|
|
|
|
|
2013-09-27 17:54:06 -07:00
|
|
|
@interface FeedDetailTableCell : NBSwipeableCell {
|
2012-07-22 17:08:29 -07:00
|
|
|
NewsBlurAppDelegate *appDelegate;
|
|
|
|
|
2012-07-22 14:23:50 -07:00
|
|
|
// All views
|
2012-07-22 17:08:29 -07:00
|
|
|
NSString *storyTitle;
|
|
|
|
NSString *storyAuthor;
|
|
|
|
NSString *storyDate;
|
2014-02-10 19:21:53 -08:00
|
|
|
NSString *storyContent;
|
2022-08-18 20:44:08 -07:00
|
|
|
NSString *storyHash;
|
2014-02-10 19:21:53 -08:00
|
|
|
UIImage *storyImage;
|
2013-10-10 12:58:40 -07:00
|
|
|
NSInteger storyTimestamp;
|
2012-08-10 18:10:07 -07:00
|
|
|
int storyScore;
|
2014-05-20 12:58:04 -07:00
|
|
|
BOOL isSaved;
|
2013-08-05 17:29:42 -07:00
|
|
|
BOOL isShared;
|
2011-10-25 09:28:05 -07:00
|
|
|
|
2012-07-22 14:23:50 -07:00
|
|
|
// River view
|
2012-07-22 17:08:29 -07:00
|
|
|
NSString *siteTitle;
|
|
|
|
UIImage *siteFavicon;
|
|
|
|
BOOL isRead;
|
|
|
|
BOOL isRiverOrSocial;
|
2012-07-23 10:57:11 -07:00
|
|
|
BOOL hasAlpha;
|
2012-07-22 17:08:29 -07:00
|
|
|
|
|
|
|
UIColor *feedColorBar;
|
|
|
|
UIColor *feedColorBarTopBorder;
|
2013-09-30 12:13:10 -07:00
|
|
|
UIView *cellContent;
|
2010-07-15 00:44:38 -04:00
|
|
|
}
|
|
|
|
|
2012-07-22 17:08:29 -07:00
|
|
|
@property (nonatomic) NSString *siteTitle;
|
|
|
|
@property (nonatomic) UIImage *siteFavicon;
|
|
|
|
|
2012-08-10 18:10:07 -07:00
|
|
|
@property (readwrite) int storyScore;
|
2014-05-20 12:58:04 -07:00
|
|
|
@property (nonatomic, readwrite) BOOL isSaved;
|
2013-08-05 17:29:42 -07:00
|
|
|
@property (readwrite) BOOL isShared;
|
2012-07-22 17:08:29 -07:00
|
|
|
|
|
|
|
@property (nonatomic) NSString *storyTitle;
|
|
|
|
@property (nonatomic) NSString *storyAuthor;
|
|
|
|
@property (nonatomic) NSString *storyDate;
|
2014-02-10 19:21:53 -08:00
|
|
|
@property (nonatomic) NSString *storyContent;
|
2022-08-18 20:44:08 -07:00
|
|
|
@property (nonatomic) NSString *storyHash;
|
2014-02-10 19:21:53 -08:00
|
|
|
@property (nonatomic) UIImage *storyImage;
|
2013-10-10 12:58:40 -07:00
|
|
|
@property (nonatomic) NSInteger storyTimestamp;
|
2012-07-22 14:23:50 -07:00
|
|
|
|
2012-07-22 17:08:29 -07:00
|
|
|
@property (nonatomic) UIColor *feedColorBar;
|
|
|
|
@property (nonatomic) UIColor *feedColorBarTopBorder;
|
2012-07-22 14:23:50 -07:00
|
|
|
|
2012-07-22 17:08:29 -07:00
|
|
|
@property (readwrite) BOOL isRead;
|
2015-11-03 17:52:21 -08:00
|
|
|
@property (readwrite) BOOL isReadAvailable;
|
2012-08-08 18:23:48 -07:00
|
|
|
@property (readwrite) BOOL isShort;
|
2012-07-22 17:08:29 -07:00
|
|
|
@property (readwrite) BOOL isRiverOrSocial;
|
2012-07-23 10:57:11 -07:00
|
|
|
@property (readwrite) BOOL hasAlpha;
|
2011-10-25 09:28:05 -07:00
|
|
|
|
2019-01-30 11:58:32 -08:00
|
|
|
@property (nonatomic) FeedDetailTextSize textSize;
|
|
|
|
|
2013-09-27 17:23:03 -07:00
|
|
|
- (void)setupGestures;
|
|
|
|
|
2010-07-15 00:44:38 -04:00
|
|
|
@end
|
2013-09-27 17:23:03 -07:00
|
|
|
|
2014-02-10 19:21:53 -08:00
|
|
|
@interface FeedDetailTableCellView : UIView {
|
|
|
|
UIImage *storyImage;
|
|
|
|
}
|
2013-09-27 17:23:03 -07:00
|
|
|
|
2014-02-11 11:52:32 -08:00
|
|
|
@property (nonatomic) NewsBlurAppDelegate *appDelegate;
|
2013-09-27 17:23:03 -07:00
|
|
|
@property (nonatomic) FeedDetailTableCell *cell;
|
2014-02-10 19:21:53 -08:00
|
|
|
@property (nonatomic) UIImage *storyImage;
|
2013-09-27 17:23:03 -07:00
|
|
|
|
2019-01-30 11:58:32 -08:00
|
|
|
@end
|