Пожалуйста, включите JavaScript.
Главная
Обзор
Помощь
Вход
lisper
/
webfeed
Следить
1
В избранное
0
Форкнуть
0
Код
Задачи
0
Pull Request'ы
0
Релизы
0
Вики
Активность
Просмотр исходного кода
add toString method for atom classes
master
Wito Chandra
8 лет назад
Родитель
085316c2fb
Сommit
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
''';
}
}
Редактирование
Предпросмотр
Загрузка…
Отмена
Сохранить