com.aelitis.azureus.core.subs.impl
Class SubscriptionResultImpl

java.lang.Object
  extended by com.aelitis.azureus.core.subs.impl.SubscriptionResultImpl
All Implemented Interfaces:
SubscriptionResult, UtilitiesImpl.PluginSubscriptionResult

public class SubscriptionResultImpl
extends Object
implements SubscriptionResult


Constructor Summary
protected SubscriptionResultImpl(SubscriptionHistoryImpl _history, Map map)
           
protected SubscriptionResultImpl(SubscriptionHistoryImpl _history, Result result)
           
 
Method Summary
 void delete()
           
protected  void deleteInternal()
           
 String getAssetHash()
           
 String getDownloadLink()
           
 String getID()
           
protected  byte[] getKey1()
           
protected  byte[] getKey2()
           
 String getPlayLink()
           
 boolean getRead()
           
 long getTimeFound()
           
 boolean isDeleted()
           
 void setRead(boolean _read)
           
protected  void setReadInternal(boolean _read)
           
protected  Map toBEncodedMap()
           
 Map toJSONMap()
           
 Map<Integer,Object> toPropertyMap()
          See SearchResult properties for list
protected  boolean updateFrom(SubscriptionResultImpl other)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriptionResultImpl

protected SubscriptionResultImpl(SubscriptionHistoryImpl _history,
                                 Result result)

SubscriptionResultImpl

protected SubscriptionResultImpl(SubscriptionHistoryImpl _history,
                                 Map map)
Method Detail

updateFrom

protected boolean updateFrom(SubscriptionResultImpl other)

getID

public String getID()
Specified by:
getID in interface SubscriptionResult

getKey1

protected byte[] getKey1()

getKey2

protected byte[] getKey2()

getRead

public boolean getRead()
Specified by:
getRead in interface SubscriptionResult
Specified by:
getRead in interface UtilitiesImpl.PluginSubscriptionResult

setRead

public void setRead(boolean _read)
Specified by:
setRead in interface SubscriptionResult
Specified by:
setRead in interface UtilitiesImpl.PluginSubscriptionResult

setReadInternal

protected void setReadInternal(boolean _read)

delete

public void delete()
Specified by:
delete in interface SubscriptionResult

deleteInternal

protected void deleteInternal()

isDeleted

public boolean isDeleted()
Specified by:
isDeleted in interface SubscriptionResult

toBEncodedMap

protected Map toBEncodedMap()

toJSONMap

public Map toJSONMap()
Specified by:
toJSONMap in interface SubscriptionResult

getDownloadLink

public String getDownloadLink()
Specified by:
getDownloadLink in interface SubscriptionResult

getPlayLink

public String getPlayLink()
Specified by:
getPlayLink in interface SubscriptionResult

getAssetHash

public String getAssetHash()

getTimeFound

public long getTimeFound()
Specified by:
getTimeFound in interface SubscriptionResult

toPropertyMap

public Map<Integer,Object> toPropertyMap()
Description copied from interface: SubscriptionResult
See SearchResult properties for list

Specified by:
toPropertyMap in interface SubscriptionResult
Specified by:
toPropertyMap in interface UtilitiesImpl.PluginSubscriptionResult