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