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.

25 lines
479 B

  1. import 'package:xml/xml.dart';
  2. class Thumbnail {
  3. final String? url;
  4. final String? width;
  5. final String? height;
  6. final String? time;
  7. Thumbnail({
  8. this.url,
  9. this.width,
  10. this.height,
  11. this.time,
  12. });
  13. factory Thumbnail.parse(XmlElement element) {
  14. return Thumbnail(
  15. url: element.getAttribute('url'),
  16. width: element.getAttribute('width'),
  17. height: element.getAttribute('height'),
  18. time: element.getAttribute('time'),
  19. );
  20. }
  21. }