api: add timestamps to message nodes, expose message id
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -36,4 +36,8 @@ public class SetMessage
|
||||
* The new message value.
|
||||
*/
|
||||
private String value;
|
||||
/**
|
||||
* Timestamp of the message.
|
||||
*/
|
||||
private int timestamp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user