1
0
mirror of https://github.com/lint/TFDidThatSay synced 2025-07-05 08:46:46 +00:00

Add BaconReader support

This commit is contained in:
lint
2019-12-10 00:54:26 -05:00
parent 9fddcd5d4d
commit 5bfb85ac74
4 changed files with 350 additions and 0 deletions

59
tweak/BaconReader.h Normal file
View File

@ -0,0 +1,59 @@
/* -- Votable Interfaces -- */
@interface BRVotable
@property(strong, nonatomic) NSString *serverID;
@property(strong, nonatomic) NSAttributedString *attributedDescriptionString;
@property(assign, nonatomic) CGSize cellSize;
@end
@interface BRComment : BRVotable
@property(strong, nonatomic) NSString *author;
@property(strong, nonatomic) NSString *body;
@property(strong, nonatomic) NSString *body_html;
@end
@interface BRStory : BRVotable
@property(strong, nonatomic) NSString *author;
@property(strong, nonatomic) NSString *selftext;
@property(strong, nonatomic) NSString *selftext_html;
@property(assign, nonatomic) BOOL is_selfValue;
@end
/* -- Comment Interfaces -- */
@interface CommentCell
@property(strong, nonatomic) id cellView;
@end
@interface CommentCellView
@property(strong, nonatomic) id comment;
@property(strong, nonatomic) id parentDelegate;
@end
@interface BRComposeCommentViewController : NSObject
@property(assign, nonatomic) BOOL editComment;
@end
/* -- Post Interfaces -- */
@interface StoryDetailView
@property(strong, nonatomic) UITableView *tableView;
-(void) refreshTouched;
@end
@interface StoryDetailViewController
@property(strong, nonatomic) id story;
@property(strong, nonatomic) id detailPage;
//custom elements
-(void) handleUndeleteCommentAction;
-(void) handleUndeletePostAction;
@end
/* -- Other Interfaces -- */
@interface BRUtils
+(id) attributedDescriptionForComment:(id) arg1;
+(id) createAttributedStringFromHTML:(id) arg1 options:(id) arg2;
@end