com.aelitis.azureus.core.content
Class RelatedContent

java.lang.Object
  extended by com.aelitis.azureus.core.content.RelatedContent
Direct Known Subclasses:
RelatedContentManager.DownloadInfo

public abstract class RelatedContent
extends java.lang.Object


Field Summary
static java.lang.String[] NO_TAGS
           
static int VERSION_BETTER_SCRAPE
           
static int VERSION_INITIAL
           
static int VERSION_NA
           
 
Constructor Summary
RelatedContent(int _version, byte[] _related_to_hash, java.lang.String _title, byte[] _hash, java.lang.String _tracker, byte[] _tracker_keys, byte[] _ws_keys, java.lang.String[] _tags, byte _nets, long _size, int _date, int _seeds_leechers, byte _cnet)
           
RelatedContent(int _version, java.lang.String _title, byte[] _hash, java.lang.String _tracker, byte[] _tracker_keys, byte[] _ws_keys, java.lang.String[] _tags, byte _nets, long _size, int _date, int _seeds_leechers, byte _cnet)
           
RelatedContent(java.lang.String _title, byte[] _hash, java.lang.String _tracker, byte[] _tracker_keys, byte[] _ws_keys, java.lang.String[] _tags, byte _nets, long _size, int _date, int _seeds_leechers, byte _cnet)
           
RelatedContent(java.lang.String _title, byte[] _hash, java.lang.String _tracker, long _size, int _date, int _seeds_leechers, byte _cnet)
           
 
Method Summary
abstract  void delete()
           
 long getChangedLocallyOn()
           
 long getContentNetwork()
           
protected  int getDateHours()
           
 byte[] getHash()
           
abstract  int getLastSeenSecs()
           
 int getLeechers()
           
abstract  int getLevel()
           
 java.lang.String[] getNetworks()
           
protected  byte getNetworksInternal()
           
 long getPublishDate()
           
abstract  int getRank()
           
abstract  Download getRelatedToDownload()
           
 byte[] getRelatedToHash()
           
 int getSeeds()
           
protected  int getSeedsLeechers()
           
 long getSize()
           
 java.lang.String getString()
           
 java.lang.String[] getTags()
           
 java.lang.String getTitle()
           
 java.lang.String getTracker()
           
 byte[] getTrackerKeys()
           
 int getVersion()
           
 byte[] getWebSeedKeys()
           
abstract  boolean isUnread()
           
 void setChangedLocallyOn(long _changed_locally_on)
           
protected  void setContentNetwork(long cnet)
           
protected  void setDateHours(int _date)
           
protected  void setNetworksInternal(byte n)
           
protected  void setRelatedToHash(byte[] h)
           
protected  void setSeedsLeechers(int _sl)
           
protected  void setTags(java.lang.String[] _tags)
           
abstract  void setUnread(boolean unread)
           
protected  void setVersion(int _version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION_NA

public static final int VERSION_NA
See Also:
Constant Field Values

VERSION_INITIAL

public static final int VERSION_INITIAL
See Also:
Constant Field Values

VERSION_BETTER_SCRAPE

public static final int VERSION_BETTER_SCRAPE
See Also:
Constant Field Values

NO_TAGS

public static final java.lang.String[] NO_TAGS
Constructor Detail

RelatedContent

public RelatedContent(int _version,
                      byte[] _related_to_hash,
                      java.lang.String _title,
                      byte[] _hash,
                      java.lang.String _tracker,
                      byte[] _tracker_keys,
                      byte[] _ws_keys,
                      java.lang.String[] _tags,
                      byte _nets,
                      long _size,
                      int _date,
                      int _seeds_leechers,
                      byte _cnet)

RelatedContent

public RelatedContent(java.lang.String _title,
                      byte[] _hash,
                      java.lang.String _tracker,
                      long _size,
                      int _date,
                      int _seeds_leechers,
                      byte _cnet)

RelatedContent

public RelatedContent(java.lang.String _title,
                      byte[] _hash,
                      java.lang.String _tracker,
                      byte[] _tracker_keys,
                      byte[] _ws_keys,
                      java.lang.String[] _tags,
                      byte _nets,
                      long _size,
                      int _date,
                      int _seeds_leechers,
                      byte _cnet)

RelatedContent

public RelatedContent(int _version,
                      java.lang.String _title,
                      byte[] _hash,
                      java.lang.String _tracker,
                      byte[] _tracker_keys,
                      byte[] _ws_keys,
                      java.lang.String[] _tags,
                      byte _nets,
                      long _size,
                      int _date,
                      int _seeds_leechers,
                      byte _cnet)
Method Detail

getVersion

public int getVersion()

setVersion

protected void setVersion(int _version)

setRelatedToHash

protected void setRelatedToHash(byte[] h)

getRelatedToHash

public byte[] getRelatedToHash()

getRelatedToDownload

public abstract Download getRelatedToDownload()

getTitle

public java.lang.String getTitle()

getRank

public abstract int getRank()

getHash

public byte[] getHash()

getLevel

public abstract int getLevel()

isUnread

public abstract boolean isUnread()

setUnread

public abstract void setUnread(boolean unread)

getLastSeenSecs

public abstract int getLastSeenSecs()

getTracker

public java.lang.String getTracker()

getTrackerKeys

public byte[] getTrackerKeys()

getWebSeedKeys

public byte[] getWebSeedKeys()

getTags

public java.lang.String[] getTags()

setTags

protected void setTags(java.lang.String[] _tags)

getNetworks

public java.lang.String[] getNetworks()

getNetworksInternal

protected byte getNetworksInternal()

setNetworksInternal

protected void setNetworksInternal(byte n)

getSize

public long getSize()

getPublishDate

public long getPublishDate()

getDateHours

protected int getDateHours()

setDateHours

protected void setDateHours(int _date)

getLeechers

public int getLeechers()

getSeeds

public int getSeeds()

getSeedsLeechers

protected int getSeedsLeechers()

setSeedsLeechers

protected void setSeedsLeechers(int _sl)

getContentNetwork

public long getContentNetwork()

setContentNetwork

protected void setContentNetwork(long cnet)

getChangedLocallyOn

public long getChangedLocallyOn()

setChangedLocallyOn

public void setChangedLocallyOn(long _changed_locally_on)
Parameters:
_changed_locally_on - 0 == current time

delete

public abstract void delete()

getString

public java.lang.String getString()