forked from tibo/BlockRSSParser
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converted `cancel` to use `AFHTTPSessionManager` instead of operation. Added initial support for `RSS media`. Added instance methods for parsing to `RSSParser`.
- Loading branch information
1 parent
3b6f174
commit 0197081
Showing
12 changed files
with
309 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// RSSMediaCredit.h | ||
// Pods | ||
// | ||
// Created by Joshua on 4/2/14. | ||
// | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface RSSMediaCredit : NSObject <NSCoding> | ||
@property (strong,nonatomic) NSString *role; | ||
@property (strong,nonatomic) NSString *value; | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// | ||
// RSSMediaCredit.m | ||
// Pods | ||
// | ||
// Created by Joshua on 4/2/14. | ||
// | ||
// | ||
|
||
#import "RSSMediaCredit.h" | ||
|
||
@implementation RSSMediaCredit | ||
|
||
#pragma mark - NSCoding | ||
|
||
- (instancetype)initWithCoder:(NSCoder *)aDecoder | ||
{ | ||
if (self = [super init]) { | ||
_role = [aDecoder decodeObjectForKey:@"role"]; | ||
_value = [aDecoder decodeObjectForKey:@"value"]; | ||
} | ||
|
||
return self; | ||
} | ||
|
||
- (void)encodeWithCoder:(NSCoder *)aCoder | ||
{ | ||
[aCoder encodeObject:self.role forKey:@"role"]; | ||
[aCoder encodeObject:self.value forKey:@"value"]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// RSSMediaThumbnail.h | ||
// Pods | ||
// | ||
// Created by Joshua on 4/2/14. | ||
// | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface RSSMediaThumbnail : NSObject <NSCoding> | ||
@property (strong,nonatomic) NSURL *url; | ||
@property (assign,nonatomic) float height; | ||
@property (assign,nonatomic) float width; | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// | ||
// RSSMediaThumbnail.m | ||
// Pods | ||
// | ||
// Created by Joshua on 4/2/14. | ||
// | ||
// | ||
|
||
#import "RSSMediaThumbnail.h" | ||
|
||
@implementation RSSMediaThumbnail | ||
|
||
- (instancetype)initWithCoder:(NSCoder *)aDecoder | ||
{ | ||
if (self = [super init]) { | ||
_url = [aDecoder decodeObjectForKey:@"url"]; | ||
_height = [[aDecoder decodeObjectForKey:@"height"] floatValue]; | ||
_width = [[aDecoder decodeObjectForKey:@"width"] floatValue]; | ||
} | ||
return self; | ||
} | ||
|
||
- (void)encodeWithCoder:(NSCoder *)aCoder | ||
{ | ||
[aCoder encodeObject:self.url forKey:@"url"]; | ||
[aCoder encodeObject:@(self.height) forKey:@"height"]; | ||
[aCoder encodeObject:@(self.width) forKey:@"width"]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.