Skip to content
Snippets Groups Projects
ConnectionClosedEvent.java 662 B
Newer Older
package org.briarproject.api.event;

import org.briarproject.api.TransportId;
import org.briarproject.api.contact.ContactId;

public class ConnectionClosedEvent extends Event {

	private final ContactId contactId;
	private final TransportId transportId;
	private final boolean incoming;

	public ConnectionClosedEvent(ContactId contactId, TransportId transportId,
			boolean incoming) {
		this.contactId = contactId;
		this.transportId = transportId;
		this.incoming = incoming;
	}

	public ContactId getContactId() {
		return contactId;
	}

	public TransportId getTransportId() {
		return transportId;
	}

	public boolean isIncoming() {
		return incoming;
	}
}