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_generator.dart
2020-02-09 20:29:09 +08:00

20 lines
460 B
Dart

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