package meerkat.bulletinboard;

import meerkat.protobuf.BulletinBoardApi.BatchChunk;
import meerkat.bulletinboard.AsyncBulletinBoardClient.BatchIdentifier;

import java.util.List;

/**
 * Created by Arbel Deutsch Peled on 17-Jan-16.
 * Used to store the complete data required for sending a batch data list inside a single object
 */
public class BatchDataContainer {

    public final MultiServerBatchIdentifier batchId;
    public final List<BatchChunk> batchChunkList;
    public final int startPosition;

    public BatchDataContainer(MultiServerBatchIdentifier batchId, List<BatchChunk> batchChunkList, int startPosition) {
        this.batchId = batchId;
        this.batchChunkList = batchChunkList;
        this.startPosition = startPosition;
    }
}
