package nl.sikken.bertrik.hab.habitat;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @author bertrik
 *
 */
public final class UploadResult {
    
    @JsonProperty("ok")
    private boolean ok;
    
    @JsonProperty("id")
    private String id;
    
    @JsonProperty("rev")
    private String rev;
    
    private UploadResult() {
        // jackson constructor
    }

    public boolean isOk() {
        return ok;
    }

    public String getId() {
        return id;
    }

    public String getRev() {
        return rev;
    }
    
}

@@ -104,27 +104,51 @@
 %0A * 
-@author bertrik%0D%0A *
+UploadResult object for uploaded documents.
 %0D%0A *
@@ -610,11 +610,137 @@
 %0D%0A    %0D%0A
+    @Override%0D%0A    public String toString() %7B%0D%0A        return String.format(%22ok=%25s,id=%25s,rev=%25s%22, ok, id, rev);%0D%0A    %7D%0D%0A    %0D%0A
 %7D%0D%0A

Add toString() method.