mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 12:19:54 +01:00
Changed the root package from net.sf.briar to org.briarproject.
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
import org.briarproject.api.TransportId;
|
||||
import org.briarproject.api.TransportProperties;
|
||||
|
||||
/**
|
||||
* A packet updating the recipient's view of the sender's transport properties.
|
||||
*/
|
||||
public class TransportUpdate {
|
||||
|
||||
private final TransportId id;
|
||||
private final TransportProperties properties;
|
||||
private final long version;
|
||||
|
||||
public TransportUpdate(TransportId id, TransportProperties properties,
|
||||
long version) {
|
||||
this.id = id;
|
||||
this.properties = properties;
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
/** Returns the identifier of the updated transport. */
|
||||
public TransportId getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/** Returns the transport's updated properties. */
|
||||
public TransportProperties getProperties() {
|
||||
return properties;
|
||||
}
|
||||
|
||||
/** Returns the update's version number. */
|
||||
public long getVersion() {
|
||||
return version;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user