mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
37 lines
847 B
Java
37 lines
847 B
Java
package org.briarproject.api.sync;
|
|
|
|
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;
|
|
}
|
|
}
|