Package com.biglybt.activities
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 String
private String
private String
private DownloadManager
private GlobalManager
private String
private String
private byte[]
private boolean
private long
private boolean
private String
private long
private TOTorrent
private String
private String
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
int
boolean
String[]
getID()
byte[]
long
boolean
getText()
long
Independant forgetDownloadManger()
.boolean
int
hashCode()
void
invokeCallback
(String action) boolean
isPlayable
(boolean blocking) boolean
isRead()
void
loadCommonFromMap
(Map<?, ?> map) void
loadFromExternalMap
(Map<?, ?> platformEntry) void
loadFromInternalMap
(Map<?, ?> map) void
setActions
(String[] _actions) void
setAssetHash
(String assetHash) void
setAssetImageURL
(String url) void
setCallback
(Class<? extends LocalActivityManager.LocalActivityCallback> _callback, Map<String, String> _callback_data) void
void
void
setIconIDRaw
(String iconID) void
void
setImageBytes
(byte[] imageBytes) void
setPlayable
(boolean playable) void
setRead
(boolean read) void
setReadOn
(long readOn) void
setShowThumb
(boolean showThumb) void
void
setTimestamp
(long timestamp) void
setTorrent
(TOTorrent torrent) Not needed if yousetDownloadManager(DownloadManager)
.void
setTorrentName
(String torrentName) void
void
toMap()
protected void
updateFrom
(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
public int hashCode() -
compareTo
- Specified by:
compareTo
in 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()
-