Send dbus signal, when receipt is received

Fixes #84
This commit is contained in:
AsamK 2017-06-18 12:53:06 +02:00
parent ee1e52aa4c
commit 804949ddea
2 changed files with 37 additions and 1 deletions

View file

@ -65,4 +65,23 @@ public interface Signal extends DBusInterface {
return attachments;
}
}
class ReceiptReceived extends DBusSignal {
private long timestamp;
private String sender;
public ReceiptReceived(String objectpath, long timestamp, String sender) throws DBusException {
super(objectpath, timestamp, sender);
this.timestamp = timestamp;
this.sender = sender;
}
public long getTimestamp() {
return timestamp;
}
public String getSender() {
return sender;
}
}
}