api: add timestamps to message nodes, expose message id

This commit is contained in:
Adam
2018-12-12 13:39:45 -05:00
parent 92d91b09ff
commit ed13fd3039
4 changed files with 51 additions and 0 deletions

View File

@@ -29,6 +29,13 @@ package net.runelite.api;
*/
public interface MessageNode
{
/**
* Get the id for this message node
*
* @return
*/
int getId();
/**
* Gets the type of message.
*
@@ -95,4 +102,18 @@ public interface MessageNode
* @param runeLiteFormatMessage the new message format
*/
void setRuneLiteFormatMessage(String runeLiteFormatMessage);
/**
* Get the timestamp for the message, in seconds from the unix epoch.
*
* @return
*/
int getTimestamp();
/**
* Set the timestamp of the message
*
* @param timestamp
*/
void setTimestamp(int timestamp);
}

View File

@@ -36,4 +36,8 @@ public class SetMessage
* The new message value.
*/
private String value;
/**
* Timestamp of the message.
*/
private int timestamp;
}