ru.dezhik.sms.sender.api.ApiResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sms-sender Show documentation
Show all versions of sms-sender Show documentation
Library for sending SMS via sms.ru gateway
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;
}
}