All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.gesellix.couchdb.moshi.MoshiAllDocsViewQueryResponse Maven / Gradle / Ivy

The newest version!
package de.gesellix.couchdb.moshi;

import com.squareup.moshi.Json;
import de.gesellix.couchdb.model.DocumentId;
import de.gesellix.couchdb.model.NonReducedViewQueryResponse;

import java.util.ArrayList;
import java.util.List;

public class MoshiAllDocsViewQueryResponse implements NonReducedViewQueryResponse> {

  @Json(name = "offset")
  private Integer offset;
  @Json(name = "total_rows")
  private Integer totalRows;
  @Json(name = "rows")
  private List> rows = new ArrayList<>();
  @Json(name = "update_seq")
  private Object updateSeq;

  @Override
  public Integer getOffset() {
    return offset;
  }

  public void setOffset(Integer offset) {
    this.offset = offset;
  }

  @Override
  public Integer getTotalRows() {
    return totalRows;
  }

  public void setTotalRows(Integer totalRows) {
    this.totalRows = totalRows;
  }

  @Override
  public List> getRows() {
    return rows;
  }


  public void setRows(List> rows) {
    this.rows = rows;
  }

  public void setUpdateSeq(Object updateSeq) {
    this.updateSeq = updateSeq;
  }

  public Object getUpdateSeq() {
    return updateSeq;
  }

  @Override
  public String toString() {
    return "ViewQueryResponse{" +
        "offset=" + offset +
        ", totalRows=" + totalRows +
        ", rows=" + rows +
        ", updateSeq=" + updateSeq +
        '}';
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy