1
0
mirror of https://github.com/stonega/tsacdop synced 2024-12-08 06:31:51 +01:00
tsacdop-podcast-app-android/lib/webfeed/domain/rss_cloud.dart
2020-02-09 20:29:09 +08:00

30 lines
703 B
Dart

import 'package:xml/xml.dart';
class RssCloud {
final String domain;
final String port;
final String path;
final String registerProcedure;
final String protocol;
RssCloud(
this.domain,
this.port,
this.path,
this.registerProcedure,
this.protocol,
);
factory RssCloud.parse(XmlElement node) {
if (node == null) {
return null;
}
var domain = node.getAttribute("domain");
var port = node.getAttribute("port");
var path = node.getAttribute("path");
var registerProcedure = node.getAttribute("registerProcedure");
var protocol = node.getAttribute("protocol");
return RssCloud(domain, port, path, registerProcedure, protocol);
}
}