Class SubscriptionResultImpl
java.lang.Object
com.biglybt.core.subs.impl.SubscriptionResultImpl
- All Implemented Interfaces:
SubscriptionResult, UtilitiesImpl.PluginSubscriptionResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate intprivate final SubscriptionHistoryImplprivate byte[]private byte[]private WeakReference<Map<Integer, Object>> private booleanprivate Stringprivate static final intprivate int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSubscriptionResultImpl(SubscriptionHistoryImpl _history, Result result) protectedSubscriptionResultImpl(SubscriptionHistoryImpl _history, SearchSubsResultBase _base) protectedSubscriptionResultImpl(SubscriptionHistoryImpl _history, Map map) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()protected voidprotected intgetID()private StringgetJSON()protected byte[]getKey1()protected byte[]getKey2()booleangetRead()longbooleanvoidsetRead(boolean _read) protected voidsetReadInternal(boolean _read) protected MapSee SearchResult properties for listprotected booleanupdateFrom(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:
getSubscriptionin interfaceSubscriptionResult
-
getID
- Specified by:
getIDin interfaceSubscriptionResult
-
getKey1
protected byte[] getKey1() -
getKey2
protected byte[] getKey2() -
getRead
public boolean getRead()- Specified by:
getReadin interfaceSubscriptionResult- Specified by:
getReadin interfaceUtilitiesImpl.PluginSubscriptionResult
-
setRead
public void setRead(boolean _read) - Specified by:
setReadin interfaceSubscriptionResult- Specified by:
setReadin interfaceUtilitiesImpl.PluginSubscriptionResult
-
setReadInternal
protected void setReadInternal(boolean _read) -
delete
public void delete()- Specified by:
deletein interfaceSubscriptionResult
-
deleteInternal
protected void deleteInternal() -
isDeleted
public boolean isDeleted()- Specified by:
isDeletedin interfaceSubscriptionResult
-
getDeletedLastSeen
protected int getDeletedLastSeen() -
toBEncodedMap
-
toJSONMap
- Specified by:
toJSONMapin interfaceSubscriptionResult
-
getJSON
-
getDownloadLink
- Specified by:
getDownloadLinkin interfaceSubscriptionResult
-
getPlayLink
- Specified by:
getPlayLinkin interfaceSubscriptionResult
-
getAssetHash
- Specified by:
getAssetHashin interfaceSubscriptionResult
-
getTimeFound
public long getTimeFound()- Specified by:
getTimeFoundin interfaceSubscriptionResult
-
toPropertyMap
Description copied from interface:SubscriptionResultSee SearchResult properties for list- Specified by:
toPropertyMapin interfaceSubscriptionResult- Specified by:
toPropertyMapin interfaceUtilitiesImpl.PluginSubscriptionResult- Returns:
-
getFilterableResult
- Specified by:
getFilterableResultin interfaceSubscriptionResult
-