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

18 lines
474 B
Dart

import 'package:webfeed/util/helpers.dart';
import 'package:xml/xml.dart';
class AtomPerson {
final String name;
final String uri;
final String email;
AtomPerson(this.name, this.uri, this.email);
factory AtomPerson.parse(XmlElement element) {
var name = findElementOrNull(element, "name")?.text;
var uri = findElementOrNull(element, "uri")?.text;
var email = findElementOrNull(element, "email")?.text;
return AtomPerson(name, uri, email);
}
}