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
protected class RelatedContentManager.DownloadInfo extends RelatedContent
-
-
Field Summary
Fields Modifier and Type Field Description private RelatedContentManager.ContentCache
cc
private boolean
explicit
private int
first_seen
private int
last_seen
private int
level
private int
rand
private int[]
rand_list
private boolean
unread
-
Fields inherited from class com.biglybt.core.content.RelatedContent
NO_TAGS, VERSION_BETTER_SCRAPE, VERSION_INITIAL, VERSION_NA
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DownloadInfo(int _version, byte[] _related_to, byte[] _hash, java.lang.String _title, int _rand, java.lang.String _tracker, byte[] _tracker_keys, byte[] _ws_keys, java.lang.String[] _tags, byte _nets, int _first_seen, int _level, boolean _explicit, long _size, int _date, int _seeds_leechers)
protected
DownloadInfo(int _version, byte[] _hash, java.lang.String _title, int _rand, java.lang.String _tracker, byte[] _tracker_keys, byte[] _ws_keys, java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
addInfo(RelatedContentManager.DownloadInfo info)
void
delete()
int
getFirstSeenSecs()
int
getLastSeenSecs()
int
getLevel()
protected int
getRand()
protected int[]
getRandList()
int
getRank()
Download
getRelatedToDownload()
java.lang.String
getString()
protected boolean
isExplicit()
boolean
isUnread()
protected void
setExplicit(boolean b)
protected void
setPublic(RelatedContentManager.ContentCache _cc)
void
setUnread(boolean _unread)
protected void
setUnreadInternal(boolean _unread)
protected void
updateLastSeen()
-
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 Detail
-
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
private RelatedContentManager.ContentCache cc
-
-
Constructor Detail
-
DownloadInfo
protected DownloadInfo(int _version, byte[] _related_to, byte[] _hash, java.lang.String _title, int _rand, java.lang.String _tracker, byte[] _tracker_keys, byte[] _ws_keys, java.lang.String[] _tags, byte _nets, int _first_seen, int _level, boolean _explicit, long _size, int _date, int _seeds_leechers)
-
DownloadInfo
protected DownloadInfo(int _version, byte[] _hash, java.lang.String _title, int _rand, java.lang.String _tracker, byte[] _tracker_keys, byte[] _ws_keys, java.lang.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 Detail
-
addInfo
protected boolean addInfo(RelatedContentManager.DownloadInfo info)
-
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
protected void setPublic(RelatedContentManager.ContentCache _cc)
-
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
public Download getRelatedToDownload()
- Specified by:
getRelatedToDownload
in classRelatedContent
-
delete
public void delete()
- Specified by:
delete
in classRelatedContent
-
getString
public java.lang.String getString()
- Overrides:
getString
in classRelatedContent
-
-