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 Object


Field Summary
static 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, String _title, byte[] _hash, String _tracker, byte[] _tracker_keys, byte[] _ws_keys, String[] _tags, byte _nets, long _size, int _date, int _seeds_leechers, byte _cnet)
           
RelatedContent(int _version, String _title, byte[] _hash, String _tracker, byte[] _tracker_keys, byte[] _ws_keys, String[] _tags, byte _nets, long _size, int _date, int _seeds_leechers, byte _cnet)
           
RelatedContent(String _title, byte[] _hash, String _tracker, byte[] _tracker_keys, byte[] _ws_keys, String[] _tags, byte _nets, long _size, int _date, int _seeds_leechers, byte _cnet)
           
RelatedContent(String _title, byte[] _hash, 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()
           
 String[] getNetworks()
           
protected  byte getNetworksInternal()
           
 long getPublishDate()
           
abstract  int getRank()
           
abstract  Download getRelatedToDownload()
           
 byte[] getRelatedToHash()
           
 int getSeeds()
           
protected  int getSeedsLeechers()
           
 long getSize()
           
 String getString()
           
 String[] getTags()
           
 String getTitle()
           
 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(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 String[] NO_TAGS
Constructor Detail

RelatedContent

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

RelatedContent

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

RelatedContent

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

RelatedContent

public RelatedContent(int _version,
                      String _title,
                      byte[] _hash,
                      String _tracker,
                      byte[] _tracker_keys,
                      byte[] _ws_keys,
                      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 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 String getTracker()

getTrackerKeys

public byte[] getTrackerKeys()

getWebSeedKeys

public byte[] getWebSeedKeys()

getTags

public String[] getTags()

setTags

protected void setTags(String[] _tags)

getNetworks

public 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 String getString()