Class ActivitiesEntry

java.lang.Object
com.biglybt.activities.ActivitiesEntry
All Implemented Interfaces:
TableColumnSortObject, Comparable

public class ActivitiesEntry extends Object implements TableColumnSortObject
Comparable implementation sorts on timestamp.

equals() implementation compares IDs

  • Field Details

    • text

      private String text
    • iconID

      private String iconID
    • id

      private String id
    • timestamp

      private long timestamp
    • typeID

      private String typeID
    • assetHash

      private String assetHash
    • assetImageURL

      private String assetImageURL
    • dm

      private DownloadManager dm
    • urlInfo

      public Object urlInfo
    • tableColumn

      public TableColumnCore tableColumn
    • imageBytes

      private byte[] imageBytes
    • showThumb

      private boolean showThumb
    • torrentName

      private String torrentName
    • torrent

      private TOTorrent torrent
    • playable

      private boolean playable
    • readOn

      private long readOn
    • actions

      private String[] actions
    • callback_class

      private String callback_class
    • callback_data

      private Map<String,String> callback_data
    • viewed

      private boolean viewed
    • gm

      private GlobalManager gm
  • Constructor Details

    • ActivitiesEntry

      public ActivitiesEntry(long timestamp, String text, String typeID)
    • ActivitiesEntry

      public ActivitiesEntry()
  • Method Details

    • updateFrom

      protected void updateFrom(ActivitiesEntry other)
    • loadFromExternalMap

      public void loadFromExternalMap(Map<?,?> platformEntry)
      Parameters:
      platformEntry -
    • loadFromInternalMap

      public void loadFromInternalMap(Map<?,?> map)
    • loadCommonFromMap

      public void loadCommonFromMap(Map<?,?> map)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(Object obj)
      Specified by:
      compareTo in interface Comparable
    • setAssetImageURL

      public void setAssetImageURL(String url)
    • getAssetImageURL

      public String getAssetImageURL()
    • toDeletedMap

      public Map<String,Object> toDeletedMap()
    • setActions

      public void setActions(String[] _actions)
    • getActions

      public String[] getActions()
    • allowReAdd

      public boolean allowReAdd()
    • setCallback

      public void setCallback(Class<? extends LocalActivityManager.LocalActivityCallback> _callback, Map<String,String> _callback_data)
    • invokeCallback

      public void invokeCallback(String action)
    • toMap

      public Map<String,Object> toMap()
    • getTimestamp

      public long getTimestamp()
    • setTimestamp

      public void setTimestamp(long timestamp)
    • setTypeID

      public void setTypeID(String typeID, boolean autoSetIcon)
      Parameters:
      typeID - the typeID to set
    • getTypeID

      public String getTypeID()
      Returns:
      the typeID
    • setIconID

      public void setIconID(String iconID)
      Parameters:
      iconID - the iconID to set
    • setIconIDRaw

      public void setIconIDRaw(String iconID)
    • getIconID

      public String getIconID()
      Returns:
      the iconID
    • setText

      public void setText(String text)
      Parameters:
      text - the text to set
    • getText

      public String getText()
      Returns:
      the text
    • setID

      public void setID(String id)
      Parameters:
      id - the id to set
    • getID

      public String getID()
      Returns:
      the id
    • setAssetHash

      public void setAssetHash(String assetHash)
      Parameters:
      assetHash - the assetHash to set
    • getAssetHash

      public String getAssetHash()
      Returns:
      the assetHash
    • setDownloadManager

      public void setDownloadManager(DownloadManager dm)
      Parameters:
      dm - the dm to set
    • getDownloadManger

      public DownloadManager 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

      public TOTorrent getTorrent()
      Independant for getDownloadManger(). This will be written to the map.
      Returns:
      Only returns TOTorrent set via setTorrent(TOTorrent)
      Since:
      3.0.5.3
    • setTorrent

      public void setTorrent(TOTorrent torrent)
      Not needed if you setDownloadManager(DownloadManager). This will be written the map.
      Parameters:
      torrent -
      Since:
      3.0.5.3
    • getTorrentName

      public String getTorrentName()
    • setTorrentName

      public void setTorrentName(String torrentName)
    • createSelectedContentObject

      public SelectedContent createSelectedContentObject() throws Exception
      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()