Package com.biglybt.core.subs.impl
Class SubscriptionResultImpl
- java.lang.Object
-
- com.biglybt.core.subs.impl.SubscriptionResultImpl
-
- All Implemented Interfaces:
SubscriptionResult
,UtilitiesImpl.PluginSubscriptionResult
public class SubscriptionResultImpl extends java.lang.Object implements SubscriptionResult
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
deleted
private SubscriptionHistoryImpl
history
private byte[]
key1
private byte[]
key2
private java.lang.ref.WeakReference<java.util.Map<java.lang.Integer,java.lang.Object>>
props_ref
private boolean
read
private java.lang.String
result_json
private static long
TIME_FOUND_DEFAULT
-
Constructor Summary
Constructors Modifier Constructor Description protected
SubscriptionResultImpl(SubscriptionHistoryImpl _history, Result result)
protected
SubscriptionResultImpl(SubscriptionHistoryImpl _history, java.util.Map map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
protected void
deleteInternal()
java.lang.String
getAssetHash()
java.lang.String
getDownloadLink()
java.lang.String
getID()
private java.lang.String
getJSON()
protected byte[]
getKey1()
protected byte[]
getKey2()
java.lang.String
getPlayLink()
boolean
getRead()
long
getTimeFound()
boolean
isDeleted()
void
setRead(boolean _read)
protected void
setReadInternal(boolean _read)
protected java.util.Map
toBEncodedMap()
java.util.Map
toJSONMap()
java.util.Map<java.lang.Integer,java.lang.Object>
toPropertyMap()
See SearchResult properties for listprotected boolean
updateFrom(SubscriptionResultImpl other)
-
-
-
Field Detail
-
TIME_FOUND_DEFAULT
private static final long TIME_FOUND_DEFAULT
-
history
private final SubscriptionHistoryImpl history
-
key1
private byte[] key1
-
key2
private byte[] key2
-
read
private boolean read
-
deleted
private boolean deleted
-
result_json
private java.lang.String result_json
-
props_ref
private java.lang.ref.WeakReference<java.util.Map<java.lang.Integer,java.lang.Object>> props_ref
-
-
Constructor Detail
-
SubscriptionResultImpl
protected SubscriptionResultImpl(SubscriptionHistoryImpl _history, Result result)
-
SubscriptionResultImpl
protected SubscriptionResultImpl(SubscriptionHistoryImpl _history, java.util.Map map)
-
-
Method Detail
-
updateFrom
protected boolean updateFrom(SubscriptionResultImpl other)
-
getID
public java.lang.String getID()
- Specified by:
getID
in interfaceSubscriptionResult
-
getKey1
protected byte[] getKey1()
-
getKey2
protected byte[] getKey2()
-
getRead
public boolean getRead()
- Specified by:
getRead
in interfaceSubscriptionResult
- Specified by:
getRead
in interfaceUtilitiesImpl.PluginSubscriptionResult
-
setRead
public void setRead(boolean _read)
- Specified by:
setRead
in interfaceSubscriptionResult
- Specified by:
setRead
in interfaceUtilitiesImpl.PluginSubscriptionResult
-
setReadInternal
protected void setReadInternal(boolean _read)
-
delete
public void delete()
- Specified by:
delete
in interfaceSubscriptionResult
-
deleteInternal
protected void deleteInternal()
-
isDeleted
public boolean isDeleted()
- Specified by:
isDeleted
in interfaceSubscriptionResult
-
toBEncodedMap
protected java.util.Map toBEncodedMap()
-
toJSONMap
public java.util.Map toJSONMap()
- Specified by:
toJSONMap
in interfaceSubscriptionResult
-
getJSON
private java.lang.String getJSON()
-
getDownloadLink
public java.lang.String getDownloadLink()
- Specified by:
getDownloadLink
in interfaceSubscriptionResult
-
getPlayLink
public java.lang.String getPlayLink()
- Specified by:
getPlayLink
in interfaceSubscriptionResult
-
getAssetHash
public java.lang.String getAssetHash()
-
getTimeFound
public long getTimeFound()
- Specified by:
getTimeFound
in interfaceSubscriptionResult
-
toPropertyMap
public java.util.Map<java.lang.Integer,java.lang.Object> toPropertyMap()
Description copied from interface:SubscriptionResult
See SearchResult properties for list- Specified by:
toPropertyMap
in interfaceSubscriptionResult
- Specified by:
toPropertyMap
in interfaceUtilitiesImpl.PluginSubscriptionResult
-
-