Change sub_history.
This commit is contained in:
parent
15809fd90f
commit
8be47b0ac0
|
@ -414,11 +414,11 @@ class DBHelper {
|
||||||
ORDER BY add_date DESC""");
|
ORDER BY add_date DESC""");
|
||||||
return list
|
return list
|
||||||
.map((record) => SubHistory(
|
.map((record) => SubHistory(
|
||||||
record['status'] == 0 ? true : false,
|
|
||||||
DateTime.fromMillisecondsSinceEpoch(record['remove_date']),
|
DateTime.fromMillisecondsSinceEpoch(record['remove_date']),
|
||||||
DateTime.fromMillisecondsSinceEpoch(record['add_date']),
|
DateTime.fromMillisecondsSinceEpoch(record['add_date']),
|
||||||
record['rss_url'],
|
record['rss_url'],
|
||||||
record['title']))
|
record['title'],
|
||||||
|
status: record['status'] == 0 ? true : false,))
|
||||||
.toList();
|
.toList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
import 'package:flutter/foundation.dart';
|
||||||
|
|
||||||
class SubHistory {
|
class SubHistory {
|
||||||
/// POdcast subscribe date.
|
/// POdcast subscribe date.
|
||||||
DateTime subDate;
|
DateTime subDate;
|
||||||
|
@ -14,5 +16,6 @@ class SubHistory {
|
||||||
/// POdcast rss link.
|
/// POdcast rss link.
|
||||||
String rssUrl;
|
String rssUrl;
|
||||||
|
|
||||||
SubHistory(this.status, this.delDate, this.subDate, this.rssUrl, this.title);
|
SubHistory(this.delDate, this.subDate, this.rssUrl, this.title,
|
||||||
|
{@required this.status});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue