mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-19 15:14:21 +01:00
Add timestamp to dbus MessageReceived signal
This commit is contained in:
@@ -20,8 +20,39 @@ public interface Signal extends DBusInterface {
|
||||
void sendGroupMessage(String message, List<String> attachments, byte[] groupId) throws EncapsulatedExceptions, GroupNotFoundException, AttachmentInvalidException, IOException;
|
||||
|
||||
class MessageReceived extends DBusSignal {
|
||||
public MessageReceived(String objectpath, String sender, byte[] groupId, String message, List<String> attachments) throws DBusException {
|
||||
super(objectpath, sender, groupId, message, attachments);
|
||||
private long timestamp;
|
||||
private String sender;
|
||||
private byte[] groupId;
|
||||
private String message;
|
||||
private List<String> attachments;
|
||||
|
||||
public MessageReceived(String objectpath, long timestamp, String sender, byte[] groupId, String message, List<String> attachments) throws DBusException {
|
||||
super(objectpath, timestamp, sender, groupId, message, attachments);
|
||||
this.timestamp = timestamp;
|
||||
this.sender = sender;
|
||||
this.groupId = groupId;
|
||||
this.message = message;
|
||||
this.attachments = attachments;
|
||||
}
|
||||
|
||||
public long getTimestamp() {
|
||||
return timestamp;
|
||||
}
|
||||
|
||||
public String getSender() {
|
||||
return sender;
|
||||
}
|
||||
|
||||
public byte[] getGroupId() {
|
||||
return groupId;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public List<String> getAttachments() {
|
||||
return attachments;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user