使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
lisper
/
webfeed
关注
1
点赞
0
派生
0
代码
工单
0
合并请求
0
版本发布
0
百科
动态
浏览代码
add toString method for atom classes
master
Wito Chandra
8 年前
父节点
085316c2fb
当前提交
5bf37a24da
共有
7 个文件被更改
,包括
85 次插入
和
0 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+9
-0
lib/domain/atom_category.dart
+19
-0
lib/domain/atom_feed.dart
+9
-0
lib/domain/atom_generator.dart
+18
-0
lib/domain/atom_item.dart
+12
-0
lib/domain/atom_link.dart
+9
-0
lib/domain/atom_person.dart
+9
-0
lib/domain/atom_source.dart
+ 9
- 0
lib/domain/atom_category.dart
查看文件
@@ -13,4 +13,13 @@ class AtomCategory {
var label = element.getAttribute("label");
return new AtomCategory(term, scheme, label);
}
@override
String toString() {
return '''
term: $term
scheme: $scheme
label: $label
''';
}
}
+ 19
- 0
lib/domain/atom_feed.dart
查看文件
@@ -78,4 +78,23 @@ class AtomFeed {
rights: rights,
subtitle: subtitle);
}
@override
String toString() {
return '''
id: $id
title: $title
updated: $updated
items: $items
links: $links
authors: $authors
contributors: $contributors
categories: $categories
generator: $generator
icon: $icon
logo: $logo
rights: $rights
subtitle: $subtitle
''';
}
}
+ 9
- 0
lib/domain/atom_generator.dart
查看文件
@@ -13,4 +13,13 @@ class AtomGenerator {
var value = element.text;
return new AtomGenerator(uri, version, value);
}
@override
String toString() {
return '''
uri: $uri
version: $version
value: $value
''';
}
}
+ 18
- 0
lib/domain/atom_item.dart
查看文件
@@ -73,4 +73,22 @@ class AtomItem {
summary: summary,
rights: rights);
}
@override
String toString() {
return '''
id: $id
title: $title
updated: $updated
authors: $authors
links: $links
categories: $categories
contributors: $contributors
source: $source
published: $published
content: $content
summary: $summary
rights: $rights
''';
}
}
+ 12
- 0
lib/domain/atom_link.dart
查看文件
@@ -22,4 +22,16 @@ class AtomLink {
}
return new AtomLink(href, rel, type, hreflang, title, length);
}
@override
String toString() {
return '''
href: $href
rel: $rel
type: $type
hreflang: $hreflang
title: $title
length: $length
''';
}
}
+ 9
- 0
lib/domain/atom_person.dart
查看文件
@@ -14,4 +14,13 @@ class AtomPerson {
var email = xmlGetString(element, "email", strict: false);
return new AtomPerson(name, uri, email);
}
@override
String toString() {
return '''
name: $name
uri: $uri
email: $email
''';
}
}
+ 9
- 0
lib/domain/atom_source.dart
查看文件
@@ -15,4 +15,13 @@ class AtomSource {
return new AtomSource(id, title, updated);
}
@override
String toString() {
return '''
id: $id
title: $title
updated: $updated
''';
}
}
撰写
预览
正在加载...
取消
保存