Change sub_history.

This commit is contained in:
stonega 2021-01-02 22:51:21 +08:00
parent 15809fd90f
commit 8be47b0ac0
2 changed files with 6 additions and 3 deletions

View File

@ -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();
}

View File

@ -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});
}