Package com.biglybt.core.subs.impl
Class SubscriptionResultImpl
java.lang.Object
com.biglybt.core.subs.impl.SubscriptionResultImpl
- All Implemented Interfaces:
SubscriptionResult
,UtilitiesImpl.PluginSubscriptionResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private int
private final SubscriptionHistoryImpl
private byte[]
private byte[]
private WeakReference
<Map<Integer, Object>> private boolean
private String
private static final int
private int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SubscriptionResultImpl
(SubscriptionHistoryImpl _history, Result result) protected
SubscriptionResultImpl
(SubscriptionHistoryImpl _history, SearchSubsResultBase _base) protected
SubscriptionResultImpl
(SubscriptionHistoryImpl _history, Map map) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
protected void
protected int
getID()
private String
getJSON()
protected byte[]
getKey1()
protected byte[]
getKey2()
boolean
getRead()
long
boolean
void
setRead
(boolean _read) protected void
setReadInternal
(boolean _read) protected Map
See SearchResult properties for listprotected boolean
updateFrom
(SubscriptionResultImpl other, boolean allow_reincarnation)
-
Field Details
-
TIME_FOUND_DEFAULT_SECS
private static final int TIME_FOUND_DEFAULT_SECS -
history
-
key1
private byte[] key1 -
key2
private byte[] key2 -
read
private boolean read -
deleted
private boolean deleted -
deleted_last_seen_day
private int deleted_last_seen_day -
time_found_secs
private int time_found_secs -
result_json
-
props_ref
-
-
Constructor Details
-
SubscriptionResultImpl
-
SubscriptionResultImpl
-
SubscriptionResultImpl
-
-
Method Details
-
updateFrom
-
getSubscription
- Specified by:
getSubscription
in interfaceSubscriptionResult
-
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
-
getDeletedLastSeen
protected int getDeletedLastSeen() -
toBEncodedMap
-
toJSONMap
- Specified by:
toJSONMap
in interfaceSubscriptionResult
-
getJSON
-
getDownloadLink
- Specified by:
getDownloadLink
in interfaceSubscriptionResult
-
getPlayLink
- Specified by:
getPlayLink
in interfaceSubscriptionResult
-
getAssetHash
- Specified by:
getAssetHash
in interfaceSubscriptionResult
-
getTimeFound
public long getTimeFound()- Specified by:
getTimeFound
in interfaceSubscriptionResult
-
toPropertyMap
Description copied from interface:SubscriptionResult
See SearchResult properties for list- Specified by:
toPropertyMap
in interfaceSubscriptionResult
- Specified by:
toPropertyMap
in interfaceUtilitiesImpl.PluginSubscriptionResult
- Returns:
-
getFilterableResult
- Specified by:
getFilterableResult
in interfaceSubscriptionResult
-