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

com.instamojo.wrapper.response.ApiListResponse Maven / Gradle / Ivy

The newest version!
package com.instamojo.wrapper.response;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class ApiListResponse {

    // HACK This is to accommodate the results field having different serialized names
    // Should have been a generic name like 'results'
    @SerializedName(value = "invoices", alternate = {"orders", "payouts", "payment_requests"})
    private List results;

    @SerializedName("success")
    private Boolean success;

    @SerializedName("message")
    private String message;

    @SerializedName("count")
    private Integer count;

    @SerializedName("next")
    private String next;

    @SerializedName("previous")
    private String previous;

    public List getResults() {
        return results;
    }

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

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCount() {
        return count;
    }

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

    public String getNext() {
        return next;
    }

    public void setNext(String next) {
        this.next = next;
    }

    public String getPrevious() {
        return previous;
    }

    public void setPrevious(String previous) {
        this.previous = previous;
    }

    @Override
    public String toString() {
        return "ApiListResponse{" +
                "count=" + count +
                ", next='" + next + '\'' +
                ", previous='" + previous + '\'' +
                ", results='" + results + '\'' +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy