package com.hashnot.etsy.dto;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * @author Rafał Krupiński
 */
public class Response<T> {
    @JsonProperty
    private int count;

    @JsonProperty
    private List<T> results;

    @JsonProperty
    private String type;

    @JsonProperty("pagination")
    private Pagination pagination;

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public List<T> getResults() {
        return results;
    }

    public void setResults(List<T> results) {
        this.results = results;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Pagination getPagination() {
        return pagination;
    }
}

@@ -849,11 +849,118 @@
 n;%0A    %7D
+%0A%0A    @Override%0A    public String toString() %7B%0A        return %22Response%5B%22 + type + %22 %22 + count + %22%5D%22;%0A    %7D
 %0A%7D%0A

Add Response.toString