File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -8,19 +8,13 @@ class Rss1Item {
8
8
final String title;
9
9
final String description;
10
10
final String link;
11
- final List <String > subjects;
12
- final String creator;
13
- final DateTime date;
14
11
final DublinCore dc;
15
12
final RssContent content;
16
13
17
14
Rss1Item ({
18
15
this .title,
19
16
this .description,
20
17
this .link,
21
- this .subjects,
22
- this .creator,
23
- this .date,
24
18
this .dc,
25
19
this .content,
26
20
});
@@ -37,12 +31,6 @@ class Rss1Item {
37
31
title: findElementOrNull (element, "title" )? .text,
38
32
description: findElementOrNull (element, "description" )? .text,
39
33
link: findElementOrNull (element, "link" )? .text,
40
- subjects: element
41
- .findAllElements ('dc:subject' )
42
- .map ((subject) => subject.text)
43
- .toList (),
44
- creator: findElementOrNull (element, 'dc:creator' )? .text,
45
- date: _dateTimeBuilder (findElementOrNull (element, 'dc:date' )? .text),
46
34
dc: DublinCore .parse (element),
47
35
content: RssContent .parse (findElementOrNull (element, "content:encoded" )),
48
36
);
Original file line number Diff line number Diff line change @@ -108,11 +108,7 @@ void main() {
108
108
expect (firstItem.description, '' );
109
109
expect (firstItem.title, 'はてなスタッフのブックマーク拝見! - 営業マン編「仕事の様々なシーンでフル活用」' );
110
110
expect (firstItem.link, 'http://b.hatena.ne.jp/guide/staff_bookmark_03' );
111
- expect (firstItem.creator, 'sample' );
112
- expect (firstItem.date, DateTime .parse ('2009-04-10T09:44:20Z' ));
113
- expect (firstItem.subjects[0 ], 'はてな' );
114
- expect (firstItem.subjects[1 ], 'インタビュー' );
115
- expect (firstItem.subjects[2 ], 'はてなブックマーク' );
111
+ expect (firstItem.dc.creator, 'sample' );
116
112
expect (firstItem.dc.date, '2009-04-10T09:44:20Z' );
117
113
});
118
114
}
You can’t perform that action at this time.
0 commit comments