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

net.pushover.client.Status Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package net.pushover.client;

/**
 * API response object
 */
public class Status {

    private final Integer status;

    private String request;

    public Status(Integer status) {
        this.status = status;
    }

    public int getStatus() {
        return status;
    }

    public String getRequestId() {
        return request;
    }

    public void setRequestId(String requestId) {
        this.request = requestId;
    }

    @Override
    public String toString() {
        return String.format("status: %s, requestId: %s", status != null ? String.valueOf(status) : "??", request);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy