Package com.biglybt.core.content
Class RelatedContentManager.DownloadInfo
java.lang.Object
com.biglybt.core.content.RelatedContent
com.biglybt.core.content.RelatedContentManager.DownloadInfo
- Enclosing class:
RelatedContentManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private final int
private int
private int
private final int
private int[]
private boolean
Fields inherited from class com.biglybt.core.content.RelatedContent
NO_TAGS, VERSION_BETTER_SCRAPE, VERSION_INITIAL, VERSION_NA
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DownloadInfo
(int _version, byte[] _related_to, byte[] _hash, String _title, int _rand, String _tracker, byte[] _tracker_keys, byte[] _ws_keys, String[] _tags, byte _nets, int _first_seen, int _level, boolean _explicit, long _size, int _date, int _seeds_leechers) protected
DownloadInfo
(int _version, byte[] _hash, String _title, int _rand, String _tracker, byte[] _tracker_keys, byte[] _ws_keys, String[] _tags, byte _nets, boolean _unread, int[] _rand_list, int _first_seen, int _last_seen, int _level, long _size, int _date, int _seeds_leechers, RelatedContentManager.ContentCache _cc) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
void
delete()
int
int
int
getLevel()
protected int
getRand()
protected int[]
int
getRank()
protected String[]
protected boolean
boolean
isUnread()
protected void
setExplicit
(boolean b) protected void
protected void
setTitleWordCache
(String[] words) void
setUnread
(boolean _unread) protected void
setUnreadInternal
(boolean _unread) protected void
Methods inherited from class com.biglybt.core.content.RelatedContent
getChangedLocallyOn, getDateHours, getHash, getLeechers, getNetworks, getNetworksInternal, getPublishDate, getRelatedToHash, getSeeds, getSeedsLeechers, getSize, getTags, getTitle, getTracker, getTrackerKeys, getVersion, getWebSeedKeys, setChangedLocallyOn, setDateHours, setNetworksInternal, setRelatedToHash, setSeedsLeechers, setTags, setVersion
-
Field Details
-
rand
private final int rand -
first_seen
private final int first_seen -
unread
private boolean unread -
rand_list
private int[] rand_list -
last_seen
private int last_seen -
level
private int level -
explicit
private boolean explicit -
cc
-
title_word_cache
-
-
Constructor Details
-
DownloadInfo
-
DownloadInfo
protected DownloadInfo(int _version, byte[] _hash, String _title, int _rand, String _tracker, byte[] _tracker_keys, byte[] _ws_keys, String[] _tags, byte _nets, boolean _unread, int[] _rand_list, int _first_seen, int _last_seen, int _level, long _size, int _date, int _seeds_leechers, RelatedContentManager.ContentCache _cc)
-
-
Method Details
-
getTitleWordCache
-
setTitleWordCache
-
addInfo
-
getLevel
public int getLevel()- Specified by:
getLevel
in classRelatedContent
-
isExplicit
protected boolean isExplicit() -
setExplicit
protected void setExplicit(boolean b) -
updateLastSeen
protected void updateLastSeen() -
getRank
public int getRank()- Specified by:
getRank
in classRelatedContent
-
isUnread
public boolean isUnread()- Specified by:
isUnread
in classRelatedContent
-
setPublic
-
getLastSeenSecs
public int getLastSeenSecs()- Specified by:
getLastSeenSecs
in classRelatedContent
-
getFirstSeenSecs
public int getFirstSeenSecs()- Specified by:
getFirstSeenSecs
in classRelatedContent
-
setUnreadInternal
protected void setUnreadInternal(boolean _unread) -
setUnread
public void setUnread(boolean _unread) - Specified by:
setUnread
in classRelatedContent
-
getRand
protected int getRand() -
getRandList
protected int[] getRandList() -
getRelatedToDownload
- Specified by:
getRelatedToDownload
in classRelatedContent
-
delete
public void delete()- Specified by:
delete
in classRelatedContent
-
getString
- Overrides:
getString
in classRelatedContent
-