1
0
mirror of https://github.com/stonega/tsacdop synced 2024-12-08 06:31:51 +01:00
tsacdop-podcast-app-android/lib/webfeed/domain/rss_source.dart
2020-02-09 20:29:09 +08:00

19 lines
343 B
Dart

import 'package:xml/xml.dart';
class RssSource {
final String url;
final String value;
RssSource(this.url, this.value);
factory RssSource.parse(XmlElement element) {
if (element == null) {
return null;
}
var url = element.getAttribute("url");
var value = element.text;
return RssSource(url, value);
}
}