Skip to content
Snippets Groups Projects
Endpoint.java 712 B
Newer Older
package org.briarproject.api.transport;
import org.briarproject.api.ContactId;
import org.briarproject.api.TransportId;
	protected final ContactId contactId;
	protected final TransportId transportId;
	public Endpoint(ContactId contactId, TransportId transportId, long epoch,
			boolean alice) {
		this.contactId = contactId;
		this.transportId = transportId;
		this.epoch = epoch;
		this.alice = alice;
	}

	public ContactId getContactId() {
		return contactId;
	}

	public TransportId getTransportId() {
		return transportId;
	}

	public long getEpoch() {
		return epoch;
	}

	public boolean getAlice() {
		return alice;
	}
}