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

com.zipwhip.api.response.ServerResponse Maven / Gradle / Ivy

The newest version!
package com.zipwhip.api.response;

import com.zipwhip.api.signals.Signal;

import java.util.List;
import java.util.Map;

/**
 * Represents a ServerResponse that might be in some unknown format. We don't know if it's JSON or XML or binary encoded.
 */
public abstract class ServerResponse {

    private boolean success;
    private Map>> sessions;
    private String raw;

    public ServerResponse(String raw, boolean success, Map>> sessions) {
        this.raw = raw;
        this.success = success;
        this.sessions = sessions;
    }

    public boolean isSuccess() {
        return success;
    }

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

    public Map>> getSessions() {
        return sessions;
    }

    public void setSessions(Map>> sessions) {
        this.sessions = sessions;
    }

    public String getRaw() {
        return raw;
    }

    public void setRaw(String raw) {
        this.raw = raw;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy