The Webfeed Flutter package for Appeto SDK.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 line
482 B

  1. import 'package:webfeed/util/helpers.dart';
  2. import 'package:xml/xml.dart';
  3. class AtomSource {
  4. String id;
  5. String title;
  6. String updated;
  7. AtomSource(this.id, this.title, this.updated);
  8. factory AtomSource.parse(XmlElement element) {
  9. var id = xmlGetString(element, "id", strict: false);
  10. var title = xmlGetString(element, "title", strict: false);
  11. var updated = xmlGetString(element, "updated", strict: false);
  12. return new AtomSource(id, title, updated);
  13. }
  14. }