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

19 lines
446 B
Dart

import 'package:xml/xml.dart';
import '../util/helpers.dart';
class RssItunesOwner {
final String name;
final String email;
RssItunesOwner({this.name, this.email});
factory RssItunesOwner.parse(XmlElement element) {
if (element == null) return null;
return RssItunesOwner(
name: findElementOrNull(element, "itunes:name")?.text?.trim(),
email: findElementOrNull(element, "itunes:email")?.text?.trim(),
);
}
}