1
0
Fork 0
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:
Nikolay Pultsin 2011-04-16 01:16:53 +01:00
parent aa590a5002
commit 6b7ece0f88
14 changed files with 91 additions and 126 deletions

View file

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