mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 02:09:35 +02:00
refactoring UrlInfoWithDate is a subclass of UrlInfo
This commit is contained in:
parent
aa590a5002
commit
6b7ece0f88
14 changed files with 91 additions and 126 deletions
|
@ -33,8 +33,7 @@ import org.geometerplus.fbreader.tree.FBTree;
|
|||
import org.geometerplus.fbreader.network.tree.*;
|
||||
import org.geometerplus.fbreader.network.opds.OPDSCustomLink;
|
||||
import org.geometerplus.fbreader.network.opds.OPDSLinkReader;
|
||||
import org.geometerplus.fbreader.network.urlInfo.UrlInfo;
|
||||
import org.geometerplus.fbreader.network.urlInfo.UrlInfoWithDate;
|
||||
import org.geometerplus.fbreader.network.urlInfo.*;
|
||||
|
||||
public class NetworkLibrary {
|
||||
private static NetworkLibrary ourInstance;
|
||||
|
@ -181,10 +180,10 @@ public class NetworkLibrary {
|
|||
db.loadCustomLinks(
|
||||
new NetworkDatabase.ICustomLinksHandler() {
|
||||
public void handleCustomLinkData(int id, String siteName,
|
||||
String title, String summary, Map<UrlInfo.Type,UrlInfoWithDate> infos) {
|
||||
String title, String summary, UrlInfoCollection<UrlInfoWithDate> infos) {
|
||||
if (title != null &&
|
||||
siteName != null &&
|
||||
infos.get(UrlInfo.Type.Catalog) != null) {
|
||||
infos.getInfo(UrlInfo.Type.Catalog) != null) {
|
||||
final ICustomNetworkLink link = new OPDSCustomLink(
|
||||
id, siteName, title, summary, infos
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue