Class ActivitiesEntry
java.lang.Object
com.biglybt.activities.ActivitiesEntry
- All Implemented Interfaces:
TableColumnSortObject, Comparable
Comparable implementation sorts on timestamp.
equals() implementation compares IDs
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String[]private Stringprivate Stringprivate Stringprivate DownloadManagerprivate GlobalManagerprivate Stringprivate Stringprivate byte[]private booleanprivate longprivate booleanprivate Stringprivate longprivate TOTorrentprivate Stringprivate Stringprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanintbooleanString[]getID()byte[]longbooleangetText()longIndependant forgetDownloadManger().booleaninthashCode()voidinvokeCallback(String action) booleanisPlayable(boolean blocking) booleanisRead()voidloadCommonFromMap(Map<?, ?> map) voidloadFromExternalMap(Map<?, ?> platformEntry) voidloadFromInternalMap(Map<?, ?> map) voidsetActions(String[] _actions) voidsetAssetHash(String assetHash) voidsetAssetImageURL(String url) voidsetCallback(Class<? extends LocalActivityManager.LocalActivityCallback> _callback, Map<String, String> _callback_data) voidvoidvoidsetIconIDRaw(String iconID) voidvoidsetImageBytes(byte[] imageBytes) voidsetPlayable(boolean playable) voidsetRead(boolean read) voidsetReadOn(long readOn) voidsetShowThumb(boolean showThumb) voidvoidsetTimestamp(long timestamp) voidsetTorrent(TOTorrent torrent) Not needed if yousetDownloadManager(DownloadManager).voidsetTorrentName(String torrentName) voidvoidtoMap()protected voidupdateFrom(ActivitiesEntry other)
-
Field Details
-
text
-
iconID
-
id
-
timestamp
private long timestamp -
typeID
-
assetHash
-
assetImageURL
-
dm
-
urlInfo
-
tableColumn
-
imageBytes
private byte[] imageBytes -
showThumb
private boolean showThumb -
torrentName
-
torrent
-
playable
private boolean playable -
readOn
private long readOn -
actions
-
callback_class
-
callback_data
-
viewed
private boolean viewed -
gm
-
-
Constructor Details
-
ActivitiesEntry
-
ActivitiesEntry
public ActivitiesEntry()
-
-
Method Details
-
updateFrom
-
loadFromExternalMap
- Parameters:
platformEntry-
-
loadFromInternalMap
-
loadCommonFromMap
-
equals
-
hashCode
-
compareTo
- Specified by:
compareToin interfaceComparable
-
setAssetImageURL
-
getAssetImageURL
-
toDeletedMap
-
setActions
-
getActions
-
allowReAdd
public boolean allowReAdd() -
setCallback
public void setCallback(Class<? extends LocalActivityManager.LocalActivityCallback> _callback, Map<String, String> _callback_data) -
invokeCallback
-
toMap
-
getTimestamp
public long getTimestamp() -
setTimestamp
public void setTimestamp(long timestamp) -
setTypeID
- Parameters:
typeID- the typeID to set
-
getTypeID
- Returns:
- the typeID
-
setIconID
- Parameters:
iconID- the iconID to set
-
setIconIDRaw
-
getIconID
- Returns:
- the iconID
-
setText
- Parameters:
text- the text to set
-
getText
- Returns:
- the text
-
setID
- Parameters:
id- the id to set
-
getID
- Returns:
- the id
-
setAssetHash
- Parameters:
assetHash- the assetHash to set
-
getAssetHash
- Returns:
- the assetHash
-
setDownloadManager
- Parameters:
dm- the dm to set
-
getDownloadManger
- Returns:
- the dm
-
setImageBytes
public void setImageBytes(byte[] imageBytes) - Parameters:
imageBytes- the imageBytes to set
-
getImageBytes
public byte[] getImageBytes()- Returns:
- the imageBytes
-
setShowThumb
public void setShowThumb(boolean showThumb) - Parameters:
showThumb- the showThumb to set
-
getShowThumb
public boolean getShowThumb()- Returns:
- the showThumb
-
getTorrent
Independant forgetDownloadManger(). This will be written to the map.- Returns:
- Only returns TOTorrent set via
setTorrent(TOTorrent) - Since:
- 3.0.5.3
-
setTorrent
Not needed if yousetDownloadManager(DownloadManager). This will be written the map.- Parameters:
torrent-- Since:
- 3.0.5.3
-
getTorrentName
-
setTorrentName
-
createSelectedContentObject
- Throws:
Exception
-
isPlayable
public boolean isPlayable(boolean blocking) -
setPlayable
public void setPlayable(boolean playable) -
getReadOn
public long getReadOn() -
setReadOn
public void setReadOn(long readOn) -
setRead
public void setRead(boolean read) -
isRead
public boolean isRead() -
setViewed
public void setViewed() -
getViewed
public boolean getViewed() -
canFlipRead
public boolean canFlipRead()
-