mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
consist of independently encrypted and authenticated packets (Ack, Batch, Subscriptions and Transports so far).
15 lines
350 B
Java
15 lines
350 B
Java
package net.sf.briar.protocol;
|
|
|
|
import java.util.Collection;
|
|
|
|
import net.sf.briar.api.protocol.Batch;
|
|
import net.sf.briar.api.protocol.BatchId;
|
|
import net.sf.briar.api.protocol.Message;
|
|
|
|
class BatchFactoryImpl implements BatchFactory {
|
|
|
|
public Batch createBatch(BatchId id, Collection<Message> messages) {
|
|
return new BatchImpl(id, messages);
|
|
}
|
|
}
|