mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Broadcast event when auto delete timer is mirrored
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package org.briarproject.briar.api.autodelete.event;
|
||||
|
||||
import org.briarproject.bramble.api.contact.ContactId;
|
||||
import org.briarproject.bramble.api.event.Event;
|
||||
import org.briarproject.bramble.api.nullsafety.NotNullByDefault;
|
||||
|
||||
import javax.annotation.concurrent.Immutable;
|
||||
|
||||
@Immutable
|
||||
@NotNullByDefault
|
||||
public class AutoDeleteTimerMirroredEvent extends Event {
|
||||
|
||||
private final ContactId contactId;
|
||||
private final long newTimer;
|
||||
|
||||
public AutoDeleteTimerMirroredEvent(ContactId contactId, long newTimer) {
|
||||
this.contactId = contactId;
|
||||
this.newTimer = newTimer;
|
||||
}
|
||||
|
||||
public ContactId getContactId() {
|
||||
return contactId;
|
||||
}
|
||||
|
||||
public long getNewTimer() {
|
||||
return newTimer;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user