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

ru.dezhik.sms.sender.api.ApiResponse Maven / Gradle / Ivy

There is a newer version: 0.1.3
Show newest version
package ru.dezhik.sms.sender.api;

import ru.dezhik.sms.sender.SenderServiceConfiguration;
import ru.dezhik.sms.sender.api.smsru.SMSRuResponseStatus;

/**
 * @author ilya.dezhin
 */
public class ApiResponse {

    /**
     * SMS sending system specific status, e.g. {@link SMSRuResponseStatus}
     */
    protected T responseStatus;
    /**
     * This field would be set only if no network error occurred
     * and {@link SenderServiceConfiguration#isReturnPlainResponse()} equals true.
     */
    protected String plainResponse;

    public String getPlainResponse() {
        return plainResponse;
    }

    public void setPlainResponse(String plainResponse) {
        this.plainResponse = plainResponse;
    }

    public T getResponseStatus() {
        return responseStatus;
    }

    public void setResponseStatus(T responseStatus) {
        this.responseStatus = responseStatus;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy