net.ravendb.client.documents.operations.counters.DocumentCountersOperation Maven / Gradle / Ivy
package net.ravendb.client.documents.operations.counters;
import com.fasterxml.jackson.core.JsonGenerator;
import net.ravendb.client.documents.conventions.DocumentConventions;
import java.io.IOException;
import java.util.List;
public class DocumentCountersOperation {
private List operations;
private String documentId;
public void serialize(JsonGenerator generator, DocumentConventions conventions) throws IOException {
generator.writeStartObject();
generator.writeStringField("DocumentId", documentId);
generator.writeFieldName("Operations");
generator.writeStartArray();
for (CounterOperation operation : operations) {
operation.serialize(generator, conventions);
}
generator.writeEndArray();
generator.writeEndObject();
}
public List getOperations() {
return operations;
}
public void setOperations(List operations) {
this.operations = operations;
}
public String getDocumentId() {
return documentId;
}
public void setDocumentId(String documentId) {
this.documentId = documentId;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy