The Webfeed Flutter package for Appeto SDK.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

41 lignes
898 B

  1. import 'package:xml/xml.dart';
  2. class RssCloud {
  3. final String domain;
  4. final String port;
  5. final String path;
  6. final String registerProcedure;
  7. final String protocol;
  8. RssCloud(
  9. this.domain,
  10. this.port,
  11. this.path,
  12. this.registerProcedure,
  13. this.protocol,
  14. );
  15. factory RssCloud.parse(XmlElement node) {
  16. if (node == null) {
  17. return null;
  18. }
  19. var domain = node.getAttribute("domain");
  20. var port = node.getAttribute("port");
  21. var path = node.getAttribute("path");
  22. var registerProcedure = node.getAttribute("registerProcedure");
  23. var protocol = node.getAttribute("protocol");
  24. return new RssCloud(domain, port, path, registerProcedure, protocol);
  25. }
  26. @override
  27. String toString() {
  28. return '''
  29. domain: $domain
  30. port: $port
  31. path: $path
  32. registerProcedure: $registerProcedure
  33. protocol: $protocol
  34. ''';
  35. }
  36. }