2017-06-21 06:18:46 +02:00
|
|
|
//
|
|
|
|
// RSOPMLAttributes.m
|
|
|
|
// RSXML
|
|
|
|
//
|
|
|
|
// Created by Brent Simmons on 2/28/16.
|
|
|
|
// Copyright © 2016 Ranchero Software, LLC. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "RSOPMLAttributes.h"
|
|
|
|
#import "RSXMLInternal.h"
|
|
|
|
|
|
|
|
|
|
|
|
NSString *OPMLTextKey = @"text";
|
|
|
|
NSString *OPMLTitleKey = @"title";
|
|
|
|
NSString *OPMLDescriptionKey = @"description";
|
|
|
|
NSString *OPMLTypeKey = @"type";
|
|
|
|
NSString *OPMLVersionKey = @"version";
|
|
|
|
NSString *OPMLHMTLURLKey = @"htmlUrl";
|
|
|
|
NSString *OPMLXMLURLKey = @"xmlUrl";
|
|
|
|
|
|
|
|
|
|
|
|
@implementation NSDictionary (RSOPMLAttributes)
|
|
|
|
|
|
|
|
- (NSString *)opml_text {
|
|
|
|
|
2017-06-25 23:06:01 +02:00
|
|
|
return [self rsparser_objectForCaseInsensitiveKey:OPMLTextKey];
|
2017-06-21 06:18:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
- (NSString *)opml_title {
|
|
|
|
|
2017-06-25 23:06:01 +02:00
|
|
|
return [self rsparser_objectForCaseInsensitiveKey:OPMLTitleKey];
|
2017-06-21 06:18:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
- (NSString *)opml_description {
|
|
|
|
|
2017-06-25 23:06:01 +02:00
|
|
|
return [self rsparser_objectForCaseInsensitiveKey:OPMLDescriptionKey];
|
2017-06-21 06:18:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
- (NSString *)opml_type {
|
|
|
|
|
2017-06-25 23:06:01 +02:00
|
|
|
return [self rsparser_objectForCaseInsensitiveKey:OPMLTypeKey];
|
2017-06-21 06:18:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
- (NSString *)opml_version {
|
|
|
|
|
2017-06-25 23:06:01 +02:00
|
|
|
return [self rsparser_objectForCaseInsensitiveKey:OPMLVersionKey];
|
2017-06-21 06:18:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
- (NSString *)opml_htmlUrl {
|
|
|
|
|
2017-06-25 23:06:01 +02:00
|
|
|
return [self rsparser_objectForCaseInsensitiveKey:OPMLHMTLURLKey];
|
2017-06-21 06:18:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
- (NSString *)opml_xmlUrl {
|
|
|
|
|
2017-06-25 23:06:01 +02:00
|
|
|
return [self rsparser_objectForCaseInsensitiveKey:OPMLXMLURLKey];
|
2017-06-21 06:18:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@end
|