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 booleanprivate final intprivate intprivate intprivate final intprivate int[]private booleanFields inherited from class RelatedContent
NO_TAGS, VERSION_BETTER_SCRAPE, VERSION_INITIAL, VERSION_NA -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDownloadInfo(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) protectedDownloadInfo(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 booleanvoiddelete()intintintgetLevel()protected intgetRand()protected int[]intgetRank()protected String[]protected booleanbooleanisUnread()protected voidsetExplicit(boolean b) protected voidprotected voidsetTitleWordCache(String[] words) voidsetUnread(boolean _unread) protected voidsetUnreadInternal(boolean _unread) protected voidMethods inherited from class 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:
getLevelin classRelatedContent
-
isExplicit
protected boolean isExplicit() -
setExplicit
protected void setExplicit(boolean b) -
updateLastSeen
protected void updateLastSeen() -
getRank
public int getRank()- Specified by:
getRankin classRelatedContent
-
isUnread
public boolean isUnread()- Specified by:
isUnreadin classRelatedContent
-
setPublic
-
getLastSeenSecs
public int getLastSeenSecs()- Specified by:
getLastSeenSecsin classRelatedContent
-
getFirstSeenSecs
public int getFirstSeenSecs()- Specified by:
getFirstSeenSecsin classRelatedContent
-
setUnreadInternal
protected void setUnreadInternal(boolean _unread) -
setUnread
public void setUnread(boolean _unread) - Specified by:
setUnreadin classRelatedContent
-
getRand
protected int getRand() -
getRandList
protected int[] getRandList() -
getRelatedToDownload
- Specified by:
getRelatedToDownloadin classRelatedContent
-
delete
public void delete()- Specified by:
deletein classRelatedContent
-
getString
- Overrides:
getStringin classRelatedContent
-