Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
lisper
/
webfeed
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Pull Requests
0
Lanzamientos
0
Wiki
Actividad
Explorar el Código
add toString method for atom classes
master
Wito Chandra
hace 8 años
padre
085316c2fb
commit
5bf37a24da
Se han
modificado 7 ficheros
con
85 adiciones
y
0 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+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
Ver fichero
@@ -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
Ver fichero
@@ -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
Ver fichero
@@ -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
Ver fichero
@@ -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
Ver fichero
@@ -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
Ver fichero
@@ -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
Ver fichero
@@ -15,4 +15,13 @@ class AtomSource {
return new AtomSource(id, title, updated);
}
@override
String toString() {
return '''
id: $id
title: $title
updated: $updated
''';
}
}
Escribir
Vista previa
Cargando…
Cancelar
Guardar