mirror of
https://github.com/stonega/tsacdop
synced 2025-01-09 13:53:38 +01:00
1021f2eea4
new file: lib/class/fireside_data.dart modified: lib/episodes/episodedetail.dart modified: lib/home/appbar/addpodcast.dart modified: lib/home/audioplayer.dart modified: lib/local_storage/key_value_storage.dart modified: lib/local_storage/sqflite_localpodcast.dart modified: lib/podcasts/podcastdetail.dart modified: lib/webfeed/domain/atom_feed.dart modified: lib/webfeed/domain/atom_item.dart modified: lib/webfeed/domain/atom_person.dart modified: lib/webfeed/domain/atom_source.dart modified: lib/webfeed/domain/media/community.dart modified: lib/webfeed/domain/media/embed.dart modified: lib/webfeed/domain/media/group.dart modified: lib/webfeed/domain/media/media.dart modified: lib/webfeed/domain/media/scene.dart modified: pubspec.lock modified: pubspec.yaml
18 lines
482 B
Dart
18 lines
482 B
Dart
import 'package:tsacdop/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);
|
|
}
|
|
}
|