2017-06-20 21:18:46 -07:00
//
// RSParsedArticle.h
2017-06-25 16:32:07 -07:00
// RSParser
2017-06-20 21:18:46 -07:00
//
// Created by Brent Simmons on 12/6/14.
// Copyright (c) 2014 Ranchero Software LLC. All rights reserved.
//
@ import Foundation ;
2017-12-18 15:35:50 -08:00
@ class RSParsedEnclosure ;
2017-12-19 13:03:05 -08:00
@ class RSParsedAuthor ;
2017-06-20 21:18:46 -07:00
@ interface RSParsedArticle : NSObject
- ( nonnull instancetype ) initWithFeedURL : ( NSString * _Nonnull ) feedURL ;
@ property ( nonatomic , readonly , nonnull ) NSString * feedURL ;
2017-12-19 10:59:24 -08:00
@ property ( nonatomic , nonnull ) NSString * articleID ; //guid, if present, or calculated from other attributes. Should be unique to the feed, but not necessarily unique across different feeds. (Not suitable for a database ID.)
2017-06-20 21:18:46 -07:00
@ property ( nonatomic , nullable ) NSString * guid ;
@ property ( nonatomic , nullable ) NSString * title ;
@ property ( nonatomic , nullable ) NSString * body ;
@ property ( nonatomic , nullable ) NSString * link ;
@ property ( nonatomic , nullable ) NSString * permalink ;
2017-12-19 13:03:05 -08:00
@ property ( nonatomic , nullable ) NSSet < RSParsedAuthor * > * authors ;
2017-12-18 15:35:50 -08:00
@ property ( nonatomic , nullable ) NSSet < RSParsedEnclosure * > * enclosures ;
2017-06-20 21:18:46 -07:00
@ property ( nonatomic , nullable ) NSDate * datePublished ;
@ property ( nonatomic , nullable ) NSDate * dateModified ;
@ property ( nonatomic , nonnull ) NSDate * dateParsed ;
2017-12-19 10:17:09 -08:00
- ( void ) addEnclosure : ( RSParsedEnclosure * _Nonnull ) enclosure ;
2017-12-19 13:03:05 -08:00
- ( void ) addAuthor : ( RSParsedAuthor * _Nonnull ) author ;
2017-12-19 10:17:09 -08:00
2017-06-20 21:18:46 -07:00
@ end