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

17 lines
417 B
Dart

import 'package:xml/xml.dart';
class AtomCategory {
final String term;
final String scheme;
final String label;
AtomCategory(this.term, this.scheme, this.label);
factory AtomCategory.parse(XmlElement element) {
var term = element.getAttribute("term");
var scheme = element.getAttribute("scheme");
var label = element.getAttribute("label");
return AtomCategory(term, scheme, label);
}
}